Exclusive Limits on Form Fields
I have the following field in a Django form:
area = forms.FloatField(required=False, min_value=0, max_value=100)
How do I make the minimum limit exclusive and the maximum limit inclusive?
The Django page on this form doesn't mention anything about exclusivity
versus inclusivity. And looking at the source code makes me think this
isn't directly built into Django. Am I right? If so, how could I work
around this?
No comments:
Post a Comment