Skip to content
Snippets Groups Projects

Improve handling of child/parent groups

Merged Jonathan Weth requested to merge bugfix/handling-child-parent-groups into master
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -130,7 +130,7 @@ class LessonDataQuerySet(models.QuerySet):
if isinstance(group, int):
group = Group.objects.get(pk=group)
if group.parent_groups:
if group.parent_groups.all():
# Prevent to show lessons multiple times
return self.filter(Q(**{self._period_path + "lesson__groups": group}))
else:
Loading