Re: [Django] #36128: Document the necessity of adding unique constraints to related models in intermediary m2m model. (was: Lack of constraint validation in admin Inline with many-to-many intermediary model leads to IntegrityError)

5 views
Skip to first unread message

Django

unread,
Feb 8, 2025, 8:17:03 AM2/8/25
to django-...@googlegroups.com
#36128: Document the necessity of adding unique constraints to related models in
intermediary m2m model.
-------------------------------------+-------------------------------------
Reporter: Guillaume LEBRETON | Owner: Clifford
| Gama
Type: Bug | Status: assigned
Component: Documentation | Version: 5.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Clifford Gama):

* summary:
Lack of constraint validation in admin Inline with many-to-many
intermediary model leads to IntegrityError
=>
Document the necessity of adding unique constraints to related models
in intermediary m2m model.

Comment:

The lack of constraint validation in admin is a duplicate of #35676 and is
solved by Simon Charette's patch in that ticket.

Repurposing this ticket for the documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/36128#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages