#30757: Add check to ensure max_length fits longest choice.
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: assigned
Cleanup/optimization |
Component: Core | Version: master
(System checks) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
There is currently no check to ensure that `Field.max_length` is large
enough to fit the longest value in `Field.choices`.
This would be very helpful as often this mistake is not noticed until an
attempt is made to save a record with those values that are too long.
--
Ticket URL: <https://code.djangoproject.com/ticket/30757>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.c98f70a0673aa822e876bc28fd876ae6%40djangoproject.com.