Skip to content
Snippets Groups Projects
Verified Commit 7c4441e3 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Set min_value.

parent 307e6cde
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ PersonalNoteFormSet = forms.modelformset_factory(
class ManageAbsenceForm(forms.Form):
date_start = forms.DateField(label=_('Start date'), widget=forms.SelectDateWidget, initial=datetime.today)
date_end = forms.DateField(label=_('End date'), widget=forms.SelectDateWidget, initial=datetime.today)
starting_lesson = forms.IntegerField(label=_('Starting lesson'), initial=0)
starting_lesson = forms.IntegerField(label=_('Starting lesson'), initial=0, min_value=0)
person = forms.ModelChoiceField(label=_('Person'), queryset=Person.objects.all(), widget=Select2Widget)
absent = forms.BooleanField(label=_('Absent'), initial=True)
excused = forms.BooleanField(label=_('Excused'), initial=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment