From 6c66e55fc0f5ddb885f35b9559104ed24c98cd5f Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sun, 24 Jun 2012 22:38:42 +0200 Subject: [PATCH] show right label for posts in new assignments --- openslides/assignment/forms.py | 2 +- openslides/assignment/models.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openslides/assignment/forms.py b/openslides/assignment/forms.py index f8423e1d7..048790122 100644 --- a/openslides/assignment/forms.py +++ b/openslides/assignment/forms.py @@ -20,7 +20,7 @@ from assignment.models import Assignment class AssignmentForm(ModelForm, CssClassMixin): - posts = forms.IntegerField(min_value=1) + posts = forms.IntegerField(min_value=1, label=_("Number of available posts")) class Meta: model = Assignment exclude = ('status', 'profile', 'elected') diff --git a/openslides/assignment/models.py b/openslides/assignment/models.py index f060dd563..1b7d178a8 100644 --- a/openslides/assignment/models.py +++ b/openslides/assignment/models.py @@ -33,10 +33,10 @@ class Assignment(models.Model, SlideMixin): ('fin', _('Finished')), ) - name = models.CharField(max_length=100, verbose_name = _("Name")) - description = models.TextField(null=True, blank=True, verbose_name = _("Description")) - posts = models.PositiveSmallIntegerField(verbose_name = _("Number of available posts")) - polldescription = models.CharField(max_length=100, null=True, blank=True, verbose_name = _("Short description (for ballot paper)")) + name = models.CharField(max_length=100, verbose_name=_("Name")) + description = models.TextField(null=True, blank=True, verbose_name=_("Description")) + posts = models.PositiveSmallIntegerField(verbose_name=_("Number of available posts")) + polldescription = models.CharField(max_length=100, null=True, blank=True, verbose_name=_("Short description (for ballot paper)")) profile = models.ManyToManyField(Profile, null=True, blank=True) elected = models.ManyToManyField(Profile, null=True, blank=True, related_name='elected_set') status = models.CharField(max_length=3, choices=STATUS, default='sea')