From a9d6f820d45141424c3d3a8a4dda3a83f16d14f4 Mon Sep 17 00:00:00 2001
From: Dominik George <nik@naturalnet.de>
Date: Sun, 10 Nov 2019 21:42:15 +0100
Subject: [PATCH] Remove accidentally duplicated extension code.

---
 biscuit/apps/alsijil/model_extensions.py | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/biscuit/apps/alsijil/model_extensions.py b/biscuit/apps/alsijil/model_extensions.py
index f29150ee2..bee944dae 100644
--- a/biscuit/apps/alsijil/model_extensions.py
+++ b/biscuit/apps/alsijil/model_extensions.py
@@ -3,28 +3,13 @@ from typing import Optional
 
 from django.db.models import Exists, OuterRef
 
-from biscuit.apps.chronos.models import Lesson, LessonPeriod
+from biscuit.apps.chronos.models import LessonPeriod
 from biscuit.apps.chronos.util import CalendarWeek
 from biscuit.core.models import Group, Person
 
 from .models import PersonalNote
 
 
-@Person.property
-def lessons_as_participant(self):
-    return Lesson.objects.filter(groups__members=self)
-
-
-@Person.property
-def lesson_periods_as_participant(self):
-    return LessonPeriod.objects.filter(lesson__groups__members=self)
-
-
-@Person.property
-def lesson_periods_as_teacher(self):
-    return LessonPeriod.objects.filter(lesson__teachers=self)
-
-
 @Person.method
 def mark_absent(self, day: date, starting_period: Optional[int] = 0, absent=True, excused=False):
     wanted_week = CalendarWeek.from_date(day)
-- 
GitLab