[Django] #27651: System check disallows two ManyToManyField relations on the same model, one to concrete through and one to proxy of same through

9 views
Skip to first unread message

Django

unread,
Dec 28, 2016, 11:43:56 AM12/28/16
to django-...@googlegroups.com
#27651: System check disallows two ManyToManyField relations on the same model, one
to concrete through and one to proxy of same through
-------------------------------------+-------------------------------------
Reporter: Tim | Owner: Tim Graham
Graham |
Type: | Status: assigned
Cleanup/optimization |
Component: Core | Version: master
(System checks) |
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The models added in #17002 looks okay but they don't validate with the
errors:

m2m_through_regress.Event.people: (fields.E340) The field's intermediary
table 'm2m_through_regress_individualcompetitor' clashes with the table
name of 'm2m_through_regress.ProxiedIndividualCompetitor'.
m2m_through_regress.Event.special_people: (fields.E340) The field's
intermediary table 'm2m_through_regress_individualcompetitor' clashes with
the table name of 'm2m_through_regress.IndividualCompetitor'.

--
Ticket URL: <https://code.djangoproject.com/ticket/27651>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 28, 2016, 12:11:55 PM12/28/16
to django-...@googlegroups.com
#27651: System check disallows two ManyToManyField relations on the same model, one
to concrete through and one to proxy of same through
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Tim
Type: | Graham
Cleanup/optimization | Status: assigned
Component: Core (System | Version: master
checks) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* has_patch: 0 => 1


Old description:

> The models added in #17002 looks okay but they don't validate with the
> errors:
>
> m2m_through_regress.Event.people: (fields.E340) The field's intermediary
> table 'm2m_through_regress_individualcompetitor' clashes with the table
> name of 'm2m_through_regress.ProxiedIndividualCompetitor'.
> m2m_through_regress.Event.special_people: (fields.E340) The field's
> intermediary table 'm2m_through_regress_individualcompetitor' clashes
> with the table name of 'm2m_through_regress.IndividualCompetitor'.

New description:

The models added in #17002 look okay but they don't validate with the
errors:

m2m_through_regress.Event.people: (fields.E340) The field's intermediary
table 'm2m_through_regress_individualcompetitor' clashes with the table
name of 'm2m_through_regress.ProxiedIndividualCompetitor'.
m2m_through_regress.Event.special_people: (fields.E340) The field's
intermediary table 'm2m_through_regress_individualcompetitor' clashes with
the table name of 'm2m_through_regress.IndividualCompetitor'.

--

Comment:

[https://github.com/django/django/pull/7753 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/27651#comment:1>

Django

unread,
Dec 28, 2016, 3:13:50 PM12/28/16
to django-...@googlegroups.com
#27651: System check disallows two ManyToManyField relations on the same model, one
to concrete through and one to proxy of same through
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Tim
Type: | Graham
Cleanup/optimization | Status: closed

Component: Core (System | Version: master
checks) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"e3e80da7a59f6fcef814b951f5a77a33584e3b62" e3e80da]:
{{{
#!CommitTicketReference repository=""
revision="e3e80da7a59f6fcef814b951f5a77a33584e3b62"
Fixed #27651 -- Allowed M2M to concrete and proxy through model.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27651#comment:2>

Reply all
Reply to author
Forward
0 new messages