Opened 15 years ago
Closed 15 years ago
#14647 closed (duplicate)
ModelForm fields' non-uniqueness errors aren't customizable
| Reported by: | teolicy | Owned by: | nobody | 
|---|---|---|---|
| Component: | Forms | Version: | 1.2 | 
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
Changing error messages is done by passing the error_messages dict to the field's constructor. It seems that ModelForm fields that have unique=True in their Model field are not overridable using error_messages.
  Note:
 See   TracTickets
 for help on using tickets.
    
There is already an open ticket for this: #8913.