2011/2/5 Carl Meyer <carl.j.me...@gmail.com> > > Hi Mike, > > On Feb 3, 4:36 pm, Mike Lindsey <mike-dja...@5dninja.net> wrote: > > I'm doing something with bidirectional ManyToManyFields, in a project > > I'm working on, that is resulting in duplicate attempts to create the > > intermediate tables. I'm perfectly open to suggestions of "You're > > doing it wrong" if they come with advice on how to fix my problem, > > without losing the easy Admin insertion of the relationships (without > > resorting to InLines, which don't seem to play nicely at all with > > FieldSets). Right now I'm getting around the problem by running > > syncdb, running dbshell to drop the table it complains about, and > > rerunning syncdb; repeating until syncdb finishes successfully. > > > > What would make this exceptionally easy, is if there was the option to > > set 'abstract=True' on second iteration of each of the > > ManyToManyFields, telling syncdb to not attempt to create it. > > So what you're trying to do here is simply not supported. I'm guessing > you've already concluded as much. This means that, for now, there is > no good answer for you (that I'm aware of). Whatever hack or > workaround you are able to come up with is what you're gonna get. > Sorry.
BTW the ticket for this is #897 [1] and there is a suggested workaround (explicit declaration of the 'through' table) which isn't *too* ugly and might help you in the short-term? Simon [1] http://code.djangoproject.com/ticket/897 -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.