Changes between Initial Version and Version 1 of Ticket #17629


Ignore:
Timestamp:
Feb 2, 2012, 11:48:02 AM (12 years ago)
Author:
Alex Gaynor
Comment:

Formatted for readability, please use preview in the future.

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"))}}}
    22
    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 fine
     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 fine }}}
Back to Top