Changes between Initial Version and Version 1 of Ticket #34721
- Timestamp:
- Jul 18, 2023, 1:10:32 PM (16 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34721 – Description
initial v1 37 37 38 38 Changing `ChoiceField(...)` to `TypedChoiceField(..., coerce=int)` does only affect `my_form.cleaned_data["colour"]`, but neither of `my_form.fields["colour"].choices`,`{{ my_form.fields.colour.choices }}`, or `my_form["colour"]`, or`{{ my_form.colour.value }}`. 39 40 Ultimately leads to `{% if colour_id == my_form.colour.value %}` never being true when the form is bound, even when it should.