Opened 6 months ago

Last modified 5 weeks 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: 5.1
Severity: Normal Keywords: UniqueConstraint, violation_error_message
Cc: Simon Charette Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes 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 (13)

comment:1 by Tim Graham, 6 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, 6 months ago

Owner: changed from nobody to Gerben Morsink
Status: newassigned

comment:4 by Gerben Morsink, 6 months ago

Has patch: set

comment:5 by Mariusz Felisiak, 6 months ago

Needs documentation: set

comment:6 by Gerben Morsink, 8 weeks ago

Needs documentation: unset

comment:7 by Sarah Boyce, 7 weeks ago

Patch needs improvement: set

comment:8 by Gerben Morsink, 7 weeks ago

Patch needs improvement: unset
Version: 4.1dev

comment:9 by Gerben Morsink, 6 weeks ago

Version: dev5.1

comment:10 by Sarah Boyce, 6 weeks ago

Patch needs improvement: set

comment:11 by Gerben Morsink, 6 weeks ago

Patch needs improvement: unset

comment:12 by Sarah Boyce, 5 weeks ago

Needs tests: set
Patch needs improvement: set

comment:13 by Gerben Morsink, 5 weeks ago

Patch needs improvement: unset
Note: See TracTickets for help on using tickets.
Back to Top