aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-16 14:14:06 +0100
committerAlban Gruin2017-11-16 14:14:06 +0100
commitcc64acb64af30771c523a1e0794f0976df14769b (patch)
tree3331d287a1508bdcb2a53af17943b79d87baddbb /models.py
parentd1f4287a364e8bfee86a0a55c9514edad0abbd4e (diff)
Correction d’une erreur de parenthésage dans get_parents()
Le + 1 doit venir _après_ len(), pas pendant…
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 a90e9da..4b86961 100644
--- a/models.py
+++ b/models.py
@@ -77,7 +77,7 @@ class GroupManager(Manager):
if len(group.subgroup) != 0:
groups_criteria |= reduce(lambda x, y: x | y,
[Q(subgroup=group.subgroup[:i])
- for i in range(1, len(group.subgroup + 1))])
+ for i in range(1, len(group.subgroup) + 1)])
return self.get_queryset().filter(groups_criteria, mention=group.mention,
timetable=group.timetable)