aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'models.py')
-rw-r--r--models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models.py b/models.py
index 40406e3..40849c6 100644
--- a/models.py
+++ b/models.py
@@ -72,7 +72,7 @@ class Timetable(SlugModel):
class GroupManager(Manager):
def get_parents(self, group):
- groups_criteria = Q(subgroup="") | Q(subgroup__startswith=group.subgroup)
+ groups_criteria = Q(subgroup="")
if len(group.subgroup) != 0:
groups_criteria |= reduce(lambda x, y: x | y,