aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-08 00:18:21 +0200
committerAlban Gruin2017-09-08 00:18:21 +0200
commit0a287c2013bcfd1cb71926fbd0835170369521f7 (patch)
treedf287f4d1a1e31d1203bbda50db6252d5ff135e6 /models.py
parent6afd8035bc4b89f5b50320167c23274ebec86355 (diff)
Simplification du traitement des semaines
Diffstat (limited to 'models.py')
-rw-r--r--models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/models.py b/models.py
index 3b61fa8..3e8eae3 100644
--- a/models.py
+++ b/models.py
@@ -71,8 +71,8 @@ class LastUpdate(models.Model):
class GroupManager(Manager):
- def get_relevant_groups(self):
- return self.get_queryset().annotate(children_count=Count("children")).filter(children_count=0)
+ def get_relevant_groups(self, *args, **filters):
+ return self.get_queryset().filter(*args, **filters).annotate(children_count=Count("children")).filter(children_count=0)
class Group(models.Model):