Opened 4 months ago
Last modified 4 months ago
#35103 assigned Cleanup/optimization
UniqueConstraint message does not use violation_error_message
Reported by: | Gerben Morsink | Owned by: | Gerben Morsink |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 4.1 |
Severity: | Normal | Keywords: | UniqueConstraint, violation_error_message |
Cc: | Simon Charette | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | yes |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Although this is documented, it is unexpected. Therefore I filed it as a cleanup/optimization.
See https://forum.djangoproject.com/t/customizing-validationerror-message-on-uniqueconstraint/25105 for a (possible) patch.
Change History (5)
comment:1 by , 4 months ago
Has patch: | unset |
---|---|
Triage Stage: | Unreviewed → Accepted |
UI/UX: | unset |
comment:2 by , 4 months ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 4 months ago
Has patch: | set |
---|
comment:5 by , 4 months ago
Needs documentation: | set |
---|
Note:
See TracTickets
for help on using tickets.
While Simon did provide a draft patch on the forum, I'll uncheck "Has patch" until there is a pull request to review.