Finished main view. Some tuning are to be done.

This commit is contained in:
Jean-Baptiste Lenglet
2016-12-22 21:16:46 +01:00
committed by klmp200
parent 9ac1cab983
commit a3a5a0446d
3 changed files with 117 additions and 78 deletions

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