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 12386,Automatic ManyToMany Fields in models defined in packages use invalid column names,ldevesine,nobody,"Using an M2M field in a model that is defined in a models package (that is, in member.models.membership where member is an app and app_label is defined as 'member' in the models) tries to access invalid column names to retrieve data. In member.models.membership I have defined a MembershipType with a ManyToManyField subscriptions on SubscriptionType, defined in the same file. When I attempt to access this M2M relationship, I get the error: ""Unknown column 'membership_type_subscriptions.member.subscriptiontype_id' in 'field list'"" This bug appears only in the SVN version.",,closed,"Database layer (models, ORM)",dev,,fixed,,bnomis@…,Unreviewed,0,0,0,0,0,0