Opened 16 years ago

Closed 16 years ago

#10951 closed (invalid)

DecimalField takes two optional not four as reported in docs

Reported by: Dougal Matthews 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: no UI/UX: no

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

Change History (2)

comment:1 by Tim Graham, 16 years ago

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 by Alex Gaynor, 16 years ago

Resolution: invalid
Status: newclosed

Timo is correct.

Note: See TracTickets for help on using tickets.
Back to Top