diff options
author | Alban Gruin | 2017-10-19 22:48:16 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-22 13:16:02 +0200 |
commit | 86efcdcd2df04a59eb5f27212d8d41f60f861f6c (patch) | |
tree | 2bc526ab9c6cd92d1a518499ce17cb5128195b24 /models.py | |
parent | a7f533b2ddedf69a79d7ec68200ece5bedd59b2d (diff) |
Adaptation des vues, correction du critère de sélection des groupes
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -151,7 +151,7 @@ class CourseManager(Manager): def get_courses_for_group(self, group, **criteria): groups_criteria = reduce(lambda x, y: x | y, [Q(groups__subgroup=group.subgroup[:i]) - for i in range(1, len(group.subgroup))]) | \ + for i in range(1, len(group.subgroup) + 1)]) | \ Q(groups__subgroup__isnull=True) return self.get_queryset() \ |