Fix typo TYPE_CHOICE to TYPE_CHOICES

This commit is contained in:
Norman Jäckel 2012-09-14 01:52:20 +02:00
parent cb3b26c45d
commit 811b780fb9

View File

@ -28,7 +28,7 @@ class User(DjangoUser, PersonMixin):
('male', _('Male')), ('male', _('Male')),
('female', _('Female')), ('female', _('Female')),
) )
TYPE_CHOICE = ( TYPE_CHOICES = (
('delegate', _('Delegate')), ('delegate', _('Delegate')),
('observer', _('Observer')), ('observer', _('Observer')),
('staff', _('Staff')), ('staff', _('Staff')),
@ -43,7 +43,7 @@ class User(DjangoUser, PersonMixin):
max_length=50, choices=GENDER_CHOICES, blank=True, max_length=50, choices=GENDER_CHOICES, blank=True,
verbose_name=_("Gender"), help_text=_('Only for filter the userlist.')) verbose_name=_("Gender"), help_text=_('Only for filter the userlist.'))
type = models.CharField( type = models.CharField(
max_length=100, choices=TYPE_CHOICE, blank=True, max_length=100, choices=TYPE_CHOICES, blank=True,
verbose_name=_("Typ"), help_text=_('Only for filter the userlist.')) verbose_name=_("Typ"), help_text=_('Only for filter the userlist.'))
committee = models.CharField( committee = models.CharField(
max_length=100, null=True, blank=True, verbose_name=_("Committee"), max_length=100, null=True, blank=True, verbose_name=_("Committee"),