id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
579,Field name not updated on ManyToMany through table,thomas.paul.matthews@…,andrew,"I changed the model that a ManyToMany field pointed to after the 'through' table already existed and deleted the old model. The through table field name still reflects the name of the old model even after schema migration. Opening the migrations before and after the change, I see that the variable models has been updated to reflect the change. Adding a list of model objects to the ManyToMany field will fail because Django will expect the field name in the 'through' table to be that of the new model, and you get an error like:

_mysql_exceptions.OperationalError
OperationalError: (1054, ""Unknown column 'user_id' in 'field list'"")

Thanks!",defect,accepted,minor,1.0,migrations,0.7.2,,,
