Opened 7 years ago

Closed 7 years ago

#27651 closed Cleanup/optimization (fixed)

System check disallows two ManyToManyField relations on the same model, one to concrete through and one to proxy of same through

Reported by: Tim Graham Owned by: Tim Graham
Component: Core (System checks) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

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'.

Change History (2)

comment:1 by Tim Graham, 7 years ago

Description: modified (diff)
Has patch: set

comment:2 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In e3e80da:

Fixed #27651 -- Allowed M2M to concrete and proxy through model.

Note: See TracTickets for help on using tickets.
Back to Top