diff options
author | Alban Gruin | 2017-09-08 00:18:21 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-08 00:18:21 +0200 |
commit | 0a287c2013bcfd1cb71926fbd0835170369521f7 (patch) | |
tree | df287f4d1a1e31d1203bbda50db6252d5ff135e6 /models.py | |
parent | 6afd8035bc4b89f5b50320167c23274ebec86355 (diff) |
Simplification du traitement des semaines
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |