Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#21375 closed Bug (fixed)

Related_name='+' shouldn't clash with another '+'

Reported by: akaariai Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: no UI/UX: no

Description

A relation (fk or m2m) that defines its related name as '+' shouldn't cause a model validation error if there is another relation for the same model with '+'.

Change History (2)

comment:1 Changed 21 months ago by Anssi Kääriäinen <akaariai@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 9f76ea1eaad0db0183fa3b5bade16392db0cafbd:

Fixed #21375 -- related_name='+' clashed with other '+' names

comment:2 Changed 21 months ago by Loic Bistuer <loic.bistuer@…>

In 82a58ce5b67e0b79fa0efbad72e21d9d1be25ceb:

Fixed #21491 -- Removed documented workaround for a known issue.

The issue was that two M2M hidden reverse managers
(related_name ending with a '+') could clash with each other.

Refs #21375 and #15932. Thanks Baptiste.

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