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

Add missing querysets.

parent 7746a954
No related branches found
No related tags found
1 merge request!9WIP: Add way to edit substitution
......@@ -25,5 +25,7 @@ class LessonSubstitutionForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['lesson_period'].queryset = LessonPeriod.objects.all()
self.fields['subject'].queryset = Subject.objects.all()
self.fields['teachers'].queryset = Person.objects.all()
self.fields['room'].queryset = Person.objects.all()
self.fields['room'].queryset = Room.objects.all()
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