Code

Opened 5 years ago

Closed 5 years ago

#10951 closed (invalid)

DecimalField takes two optional not four as reported in docs

Reported by: d0ugal Owned by: nobody
Component: Documentation Version:
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

http://docs.djangoproject.com/en/dev/ref/forms/fields/#decimalfield

"Takes four optional arguments:"

It should read two optional arguements as max_digits and decimal_places are required

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

I think you may have confused model and form fields. I think max_digits and decimal_places are required on the model field, but are optional on the form field, as documented.

comment:2 Changed 5 years ago by Alex

  • Resolution set to invalid
  • Status changed from new to closed

Timo is correct.

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.