Hello,
I am getting the following error when trying to run my tests with
fixtures:
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py",
line 190, in handle
for obj in objects:
File
"/usr/local/lib/python2.7/dist-packages/django/core/serializers/json.py", line
47, in Deserializerraise DeserializationError(e)DeserializationError: 'unicode'
object has no attribute 'pk'
I am using the following to create the fixture:
manage.py dumpdata --natural --exclude=contenttypes --exclude=auth.permission
--indent=4 > fixtures/initial_data.json
I tried implementing natural key managers and methods for my models but
still got the same error.
Here is the code of my models: http://pastebin.com/HbFariAC
I am really stuck with this so any clues would help me.
Thanks
<http://pastebin.com/HbFariAC>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.