I think that you have to dumdata one or both of the models at the ends
of the many to many,
and the join table will come along for free.

On Tue, Jul 3, 2012 at 3:21 PM, natasha.ba...@utoronto.ca
<natasha.ba...@utoronto.ca> wrote:
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to