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

Use initial instead of default.

parent 4148d6e0
No related branches found
No related tags found
1 merge request!26Resolve "Register absences and excuses centrally"
......@@ -53,7 +53,7 @@ PersonalNoteFormSet = forms.modelformset_factory(
class AbsentExcusedForm(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'), default=0)
starting_lesson = forms.IntegerField(label=_('Starting lesson'), initial=0)
person = forms.ModelChoiceField(label=_('Person'), queryset=Person.objects.all(), widget=Select2Widget)
absent = forms.BooleanField(label=_('Absent'))
excused = forms.BooleanField(label=_('Excused'))
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