#30976: ManyToManyField doesn't JOIN when target object has a ForeignKey with
the
same name as a default query name.
-------------------------------------+-------------------------------------
Reporter: Ben Davis | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: new => closed
* resolution: => invalid
Comment:
Django 1.10+ raises errors in such case (see
85ef98dc6ec565b1add417bd76808664e7318026):
{{{
ERRORS:
test_one.Entity.groups: (fields.E303) Reverse query name for
'Entity.groups' clashes with field name 'UserGroup.entity'.
HINT: Rename field 'UserGroup.entity', or add/change a
related_name argument to the definition for field 'Entity.groups'.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30976#comment:2>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.c6cac2f3ead6176b45aab545cf48536f%40djangoproject.com.