Opened 16 years ago
Closed 16 years ago
#8390 closed (invalid)
typo in forms documentation
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
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
max_decimal_places should be decimal_places in following:
DecimalField...
Error message keys: required, invalid, max_value, min_value, max_digits, max_decimal_places, max_whole_digits
Takes four optional arguments: max_value, min_value, max_digits, and decimal_places.
Change History (3)
follow-up: 2 comment:1 by , 16 years ago
comment:2 by , 16 years ago
Replying to thejaswi_puthraya:
Can you post the exact link to the documentation showing those arguments?
Sorry...my bad, overlooked the forms (1) documentation.
The error dict key is max_decimal_places (2). It has no connection with the optional arguments.
(1) http://www.djangoproject.com/documentation/forms/#decimalfield
(2) http://code.djangoproject.com/browser/django/trunk/django/forms/fields.py#L217
comment:3 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
As thejaswi_puthraya mentioned - max_decimal_places
is a valid error message key.
Can you post the exact link to the documentation showing those arguments?
I couldn't find a reference to max_decimal_places, max_value, min_value in either the documentation (1) or in the source (2).
(1) http://www.djangoproject.com/documentation/model-api/#decimalfield
(2) http://code.djangoproject.com/browser/django/trunk/django/db/models/fields/__init__.py#L668