Opened 3 years ago

Closed 3 years ago

#16826 closed Bug (duplicate)

Overwriting max_decimal_places error message in forms.DecimalField raises Exception

Reported by: jyl@… Owned by: nobody
Component: Forms Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


If you set decimal_places in forms.DecimalField and overwrite the the max_decimal_places error message, you will raise an exception when you try to input something larger than the specified decimal_places instead of getting your error message. Removing the custom error message does not generate the exception.

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by Jack Li <jyl@…>

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

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.