Dumpdata and serialization issues
Hi All,
I'm trying to dump the contents of a table which is the mapping for a
many-to-many field.
The table is called Part and it has a ManytoManyField called
category_id.
When I run python manage.py dumpdata store.part_category_id >
file.json
I get the error Error: Unable to serialize database: Category matching
query does not exist.
I have validated that all values in the table are valid.
The table is defined as follows --> id: integer PRIMARY KEY
unipart_id: integer category_id: integer
Also, when I run dumpdata on the table (python manage.py dumpdata
store.part > file.json), the data is dumped without an error message
but the category_id field is consistently empty in the output.
Any thoughts on what I'm doing wrong?
Thanks,
Natasha
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home