Skip to content
Snippets Groups Projects
Verified Commit f55ce220 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Swap timetable type check in my_timetable

Reason: Teachers can have primary groups, too
parent 41fe91eb
No related branches found
No related tags found
1 merge request!31Biscuit merge. Closes #53.
...@@ -66,7 +66,14 @@ def my_timetable( ...@@ -66,7 +66,14 @@ def my_timetable(
if request.user.person: if request.user.person:
person = request.user.person person = request.user.person
if person.primary_group: if person.is_teacher:
# Teacher
type_ = "teacher"
super_el = person
lesson_periods_person = person.lesson_periods_as_teacher
elif person.primary_group:
# Student # Student
type_ = "group" type_ = "group"
......
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