From 8d21b8d831e676753da7f52c565a56077e35decb Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Thu, 24 Nov 2011 19:51:16 +0100 Subject: [PATCH] Participant edit/new form: Changed default value of gender and type to blank/not specified. --- openslides/participant/models.py | 5 ++--- openslides/participant/templates/participant/overview.html | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openslides/participant/models.py b/openslides/participant/models.py index 219fa4f01..32c06d3a3 100644 --- a/openslides/participant/models.py +++ b/openslides/participant/models.py @@ -19,7 +19,6 @@ from participant.api import gen_password class Profile(models.Model): GENDER_CHOICES = ( - ('none', _('Not specified')), ('male', _('Male')), ('female', _('Female')), ) @@ -31,9 +30,9 @@ class Profile(models.Model): ) user = models.OneToOneField(User, unique=True, editable=False) - gender = models.CharField(max_length=50, choices=GENDER_CHOICES, default='none', verbose_name = _("Gender")) + gender = models.CharField(max_length=50, choices=GENDER_CHOICES, blank=True, verbose_name = _("Gender")) group = models.CharField(max_length=100, null=True, blank=True, verbose_name = _("Group")) - type = models.CharField(max_length=100, choices=TYPE_CHOICE, default='guest', verbose_name = _("Typ")) + type = models.CharField(max_length=100, choices=TYPE_CHOICE, blank=True, verbose_name = _("Typ")) committee = models.CharField(max_length=100, null=True, blank=True, verbose_name = _("Committee")) firstpassword = models.CharField(max_length=100, null=True, blank=True, verbose_name = _("First Password")) diff --git a/openslides/participant/templates/participant/overview.html b/openslides/participant/templates/participant/overview.html index a6475d2ed..978d2acb7 100644 --- a/openslides/participant/templates/participant/overview.html +++ b/openslides/participant/templates/participant/overview.html @@ -11,7 +11,7 @@ - +