#23138: please add min_length to django.db.models.fields.Field
----------------------------------------------+--------------------
Reporter: anonymous | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Database layer (models, ORM) | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
Use case is that an application may have requirements for a `CharField` to
always have a minimum of N characters (e.g. git commit sha1 needs
40characters); but the application may not use forms. Validators for
`min_length` and `max_length` could move from the forms.fields to
models.fields.
https://docs.djangoproject.com/en/dev/ref/forms/fields/#charfield
--
Ticket URL: <https://code.djangoproject.com/ticket/23138>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.aec2090f83cf7fe23351323266af71f1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.