Skip to content

Commit

Permalink
fix(managers,tasks,views): use project.owners for filter
Browse files Browse the repository at this point in the history
Signed-off-by: David Wallace <[email protected]>
  • Loading branch information
MyPyDavid committed Jan 24, 2025
1 parent d93f15f commit 4dc9f04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rdmo/tasks/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down
2 changes: 1 addition & 1 deletion rdmo/views/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 4dc9f04

Please sign in to comment.