#12386: Automatic ManyToMany Fields in models defined in packages use invalid
column names
-----------------------------+----------------------------------------------
Reporter: ldevesine | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-----------------------------+----------------------------------------------
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/12386>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.