Changes between Initial Version and Version 1 of Ticket #17629
- Timestamp:
- Feb 2, 2012, 11:48:02 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17629 – Description
initial v1 1 GRID_TYPE_CHOICES = (("comparison", "Comparison"), ("gallery", "Gallery")) 1 {{{ GRID_TYPE_CHOICES = (("comparison", "Comparison"), ("gallery", "Gallery"))}}} 2 2 3 * grid_type = forms.ChoiceField(_("Type"), choices=(("comparison", "Comparison"), ("gallery", "Gallery")) # throws a TypeError.4 * grid_type = forms.ChoiceField(label=_("Type"), choices=GRID_TYPE_CHOICES) # Works fine3 * {{{ grid_type = forms.ChoiceField(_("Type"), choices=(("comparison", "Comparison"), ("gallery", "Gallery")) # throws a TypeError. }}} 4 * {{{ grid_type = forms.ChoiceField(label=_("Type"), choices=GRID_TYPE_CHOICES) # Works fine }}}