#8279: Models with multiple ManyToManyField to 'self' use the last table for
every
m2m
-------------------------------------------------------------+--------------
Reporter: Alberto GarcĂa Hierro <[EMAIL PROTECTED]> |
Owner: metajack
Status: assigned | Milestone:
1.0
Component: Database wrapper | Version:
SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch:
0
Needs_docs: 0 | Needs_tests:
0
Needs_better_patch: 0 |
-------------------------------------------------------------+--------------
Comment (by metajack):
After some digging, it looks like a workaround for this is to set
related_name.
Options.init_name_map() iterates through the m2m related fields, but
f.field.related_query_name() is always 'entry'. This overwrites the other
'entry' key in the cache object, which is why it always joins on the final
table.
--
Ticket URL: <http://code.djangoproject.com/ticket/8279#comment:5>
Django Code <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
-~----------~----~----~----~------~----~------~--~---