aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
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):