Changes between Initial Version and Version 1 of Ticket #17629


Ignore:
Timestamp:
02/02/2012 11:48:02 AM (3 years ago)
Author:
Alex
Comment:

Formatted for readability, please use preview in the future.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17629

    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
  • 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