id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 11107,ManyToManyFields defined with keyword 'through' should not be manipulated as auto-generated m2m tables.,jcd@…,Cliff Dyer,"This ticket is a generalization of #10881. The problem is that {{{ManyToManyField}}}s defined using the {{{through}}} keyword are being handled twice by some of the sql generating subcommands of django-admin.py, once for the Model table that is passed to the {{{through}}} keyword, and again when sql is generated for all many_to_manys on each field. The second pass is incorrect, as {{{ManyToManyField(through=x)}}} relationships don't auto-create an intermediate table. If the intermediate table's primary key is manually specified, it can lead to errors that cause ./manage.py flush and ./manage.py syncdb to fail. See comments on #10881, for examples.",,closed,"Database layer (models, ORM)",dev,,fixed,,gabor@…,Ready for checkin,1,0,0,0,0,0