#34156: TypedChoiceField not compatible with IntegerChoices
-------------------------------------+-------------------------------------
Reporter: Yoshio Hasegawa | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: invalid
Keywords: Form, | Triage Stage:
TypedChoiceField, IntegerChoices, | Unreviewed
Coercion |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
Comment:
As far as I'm aware, it's an issue in your code. For `IntegerChoices` you
should pass `coerce=int` and everything works fine.
--
Ticket URL: <https://code.djangoproject.com/ticket/34156#comment:1>
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/010701847998c413-12e51317-c44f-4867-9a20-27af4f0bf777-000000%40eu-central-1.amazonses.com.