diff options
author | Alban Gruin | 2017-11-16 14:14:06 +0100 |
---|---|---|
committer | Alban Gruin | 2017-11-16 14:14:06 +0100 |
commit | cc64acb64af30771c523a1e0794f0976df14769b (patch) | |
tree | 3331d287a1508bdcb2a53af17943b79d87baddbb | |
parent | d1f4287a364e8bfee86a0a55c9514edad0abbd4e (diff) |
Correction d’une erreur de parenthésage dans get_parents()
Le + 1 doit venir _après_ len(), pas pendant…
-rw-r--r-- | models.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |