mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Finished main view. Some tuning are to be done.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user