Opened 14 years ago
Last modified 14 years ago
#17629 closed Bug
forms.ChoiceField throws TypeError if label argument not provided — at Version 1
| Reported by: | Daniel Greenfeld | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | 1.3 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
GRID_TYPE_CHOICES = (("comparison", "Comparison"), ("gallery", "Gallery"))
grid_type = forms.ChoiceField(_("Type"), choices=(("comparison", "Comparison"), ("gallery", "Gallery")) # throws a TypeError.grid_type = forms.ChoiceField(label=_("Type"), choices=GRID_TYPE_CHOICES) # Works fine
Note:
See TracTickets
for help on using tickets.
Formatted for readability, please use preview in the future.