Your Ad Here

Wednesday, January 4, 2012

syncdb not creating join table

I have two models. The second one has a ManyToMany to the first. Both
are managed. If I drop both tables and run syncdb, only the two model
tables are created. There's no join table. syncdb doesn't report any
errors.

"validate" shows 0 errors. Any ideas what the problem could be, or how
to debug it? I'm using multiple databases, and setting the table names
for the two models via the Meta class.

--
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