diff --git a/app/projects/models.py b/app/projects/models.py index 769f666e..34e349c9 100644 --- a/app/projects/models.py +++ b/app/projects/models.py @@ -703,6 +703,8 @@ class Group(models.Model): def __str__(self): return self.title + def active_project_child_groups(self): + return self.group_set.filter(dataproject__isnull=False, dataproject__visible=True).distinct() ################################################################################ # Deprecated models diff --git a/app/templates/base.html b/app/templates/base.html index cfdd490c..fea38c13 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -214,7 +214,7 @@