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 Tim Graham, 4 months ago

Has patch: unset
Triage Stage: UnreviewedAccepted
UI/UX: unset

While Simon did provide a draft patch on the forum, I'll uncheck "Has patch" until there is a pull request to review.

comment:2 by Gerben Morsink, 4 months ago

Owner: changed from nobody to Gerben Morsink
Status: newassigned

comment:4 by Gerben Morsink, 4 months ago

Has patch: set

comment:5 by Mariusz Felisiak, 4 months ago

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