#18102: fr localflavor : force min and max length
--------------------------------------+------------------------------------
     Reporter:  mothsART              |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  contrib.localflavor   |                  Version:  1.3
     Severity:  Normal                |               Resolution:
     Keywords:  fr localflavor        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  1
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by mothsART):

 charettes (Simon) : html5 minLength provides the input argument.
 While Django does used it yet, i feel good to make explicit...not
 necessarily required.

 In my patch, i think the key element is to use CharField instead of Field
 for at least benefit from "max" and "min_length".

 Ergonomically, I think that a user always prefers a frame imposed as a
 false freedom.
 In our case, if the validator strength size, why would it be possible to
 have a longer field?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18102#comment:4>
Django <https://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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to