#10713: Problem extending a model with ManyToMany field ----------------------------+----------------------------------------------- Reporter: jjgod | Owner: nobody Status: new | Milestone: 1.1 Component: Core framework | Version: SVN Keywords: manytomany | Stage: Unreviewed Has_patch: 0 | ----------------------------+----------------------------------------------- Currently, syncdb command will only create ManyToMany tables for a field if the model that field belongs to are newly created. For example, if I first have:
{{{ #!python class A(models.Model): foo = ... }}} Then I run `python manage.py syncdb`, it will create a table for `A` model. Then I add a new field to this model, say: {{{ #!python class B(models.Model): ... class A(models.Model): foo = ... bar = models.ManyToManyField(B) }}} Then I run `python manage.py syncdb` again, it won't create the needed ManyToMany table for me, the only way to have this table created is to drop the previously created table for `A` first, then let syncdb to create them for me again. I think it is inconvenient and need to be fixed. -- Ticket URL: <http://code.djangoproject.com/ticket/10713> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---