fix #250 don't allow assignments with not posts.

But for the future, see #251
This commit is contained in:
Oskar Hahn 2012-06-24 22:10:14 +02:00
parent e9c680f5e1
commit 3e7e894d62
1 changed files with 1 additions and 0 deletions

View File

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