fix #250 don't allow assignments with not posts.
But for the future, see #251
This commit is contained in:
parent
e9c680f5e1
commit
3e7e894d62
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue