diff --git a/rdmo/tasks/managers.py b/rdmo/tasks/managers.py index d30e05218..a8e3c4f69 100644 --- a/rdmo/tasks/managers.py +++ b/rdmo/tasks/managers.py @@ -19,7 +19,7 @@ def filter_available_views_for_project(self, project): return (self .filter(sites=project.site) .filter(catalogs=project.catalog) - .filter_group(project.owners.all()) + .filter_group(project.owners) .filter(available=True) .exclude(catalogs=None) ) diff --git a/rdmo/views/managers.py b/rdmo/views/managers.py index b279be221..e656ef9bf 100644 --- a/rdmo/views/managers.py +++ b/rdmo/views/managers.py @@ -19,7 +19,7 @@ def filter_available_views_for_project(self, project): return (self .filter(sites=project.site) .filter(catalogs=project.catalog) - .filter_group(project.owners.all()) + .filter_group(project.owners) .filter(available=True) .exclude(catalogs=None) )