#13631: IntegerField has no attributes max_value and min_value (1.2 regression)
---------------------------------------------+------------------------------
Reporter: mila | Owner: nobody
Status: new | Milestone:
Component: Forms | Version: 1.2
Resolution: | Keywords:
Stage: Design decision needed | Has_patch: 0
Needs_docs: 1 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by mila):
This can be easily fixed by setting a field attribute in addition to
adding a validator - similar to current CharField implementation.
The problem with this approach is that attribute value and validator can
become easily inconsistent. Therefore from my point of view the design
decision needed here is whether form field attributes are mutable or not.
For example: Can be CharField min_length set in form __init__ method?
I am attaching more tests.
--
Ticket URL: <http://code.djangoproject.com/ticket/13631#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.