show right label for posts in new assignments

This commit is contained in:
Oskar Hahn 2012-06-24 22:38:42 +02:00
parent 4339c3ae8a
commit 6c66e55fc0
2 changed files with 5 additions and 5 deletions

View File

@ -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')

View File

@ -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')