diff options
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): |