Opened 13 years ago

Last modified 13 years ago

#17629 closed Bug

forms.ChoiceField throws TypeError if label argument not provided — at Initial Version

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

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

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top