Opened 3 years ago

Closed 3 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: UI/UX:


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.

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

There is already an open ticket for this: #8913.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.