From 3e7e894d62be0349841904588af2811c4f224340 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sun, 24 Jun 2012 22:10:14 +0200 Subject: [PATCH] fix #250 don't allow assignments with not posts. But for the future, see #251 --- openslides/assignment/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openslides/assignment/forms.py b/openslides/assignment/forms.py index 1062c4888..f8423e1d7 100644 --- a/openslides/assignment/forms.py +++ b/openslides/assignment/forms.py @@ -20,6 +20,7 @@ from assignment.models import Assignment class AssignmentForm(ModelForm, CssClassMixin): + posts = forms.IntegerField(min_value=1) class Meta: model = Assignment exclude = ('status', 'profile', 'elected')