From 12fe6383be60e6a4be212494c4594eba5f7b9875 Mon Sep 17 00:00:00 2001 From: mirabilos <thorsten.glaser@teckids.org> Date: Wed, 4 Sep 2019 21:08:04 +0200 Subject: [PATCH] Fix typo. --- biscuit/apps/chronos/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biscuit/apps/chronos/models.py b/biscuit/apps/chronos/models.py index 1bf172e4..003ef501 100644 --- a/biscuit/apps/chronos/models.py +++ b/biscuit/apps/chronos/models.py @@ -138,7 +138,7 @@ class LessonPeriod(SchoolRelated): # prefetching when this model is loaded from outside, in contrast # to .filter() for substitution in self.substitutions.all(): - if substitution.weeb == wanted_week: + if substitution.week == wanted_week: return substitution return None -- GitLab