Finished main view. Some tuning are to be done.

This commit is contained in:
Jean-Baptiste Lenglet authored and klmp200 committed 2016-12-25 19:54:10 +01:00
1 parent 9ac1cab983
commit a3a5a0446d
3 files changed
+117 -78

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ class VoteCheckbox(forms.ModelMultipleChoiceField):
def validate(self, qs):
if qs.count() > self.max_choice:
raise forms.ValidationError(_("You have selected too much candidate"))
raise forms.ValidationError(_("You have selected too much candidates."), code='invalid')
# Forms