Merge
This commit is contained in:
parent
8bd4cfa756
commit
0bfa51bf0c
|
@ -28,11 +28,11 @@ def to_calendar(etudiant, periode):
|
||||||
cal = Calendar.from_ical(f.read())
|
cal = Calendar.from_ical(f.read())
|
||||||
|
|
||||||
rotations = Rotation.objects \
|
rotations = Rotation.objects \
|
||||||
.filter(groupes__membres=etudiant) \
|
.filter(groupes__membres=etudiant, periode=periode) \
|
||||||
.select_related("creneau__periode__classe__lycee") \
|
.select_related("creneau__periode__classe__lycee") \
|
||||||
.select_related("creneau__matiere") \
|
.select_related("creneau__matiere") \
|
||||||
.select_related("creneau__colleur") \
|
.select_related("creneau__colleur")
|
||||||
\
|
|
||||||
for rotation in rotations:
|
for rotation in rotations:
|
||||||
event = Event()
|
event = Event()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue