Skip to content

Commit

Permalink
Add visibility to select_related for ProjectViewSet
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Jan 17, 2025
1 parent 475b6ac commit 6ce3b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdmo/projects/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_queryset(self):
'snapshots',
'views',
Prefetch('memberships', queryset=Membership.objects.select_related('user'), to_attr='memberships_list')
).select_related('catalog')
).select_related('catalog', 'visibility')

# prepare subquery for last_changed
last_changed_subquery = Subquery(
Expand Down

0 comments on commit 6ce3b14

Please sign in to comment.