#30547: Document what happens during model validation with Meta.constraints.
-------------------------------------+-------------------------------------
Reporter: Dirk Groten | Owner: Swatantra
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 2.2
Severity: Normal | Resolution: fixed
Keywords: constraints, | Triage Stage: Ready for
UniqueConstraint | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Kevin Christopher Henry):
* cc: Kevin Christopher Henry (added)
Comment:
I suggest that the note be expanded to indicate that uniqueness validation
does ''not'' work if the `condition` parameter is used (i.e. for partial
unique indexes). Based on
[https://github.com/django/django/pull/10796#discussion_r244216763 this
comment] it appears to be a hard problem, and unlikely to be implemented
any time soon.
--
Ticket URL: <https://code.djangoproject.com/ticket/30547#comment:8>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.9ef94cbc25bb6d2825dabab6dacc0087%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.