Skip to content

Commit

Permalink
core: applications api: prefetch related policies (#10273)
Browse files Browse the repository at this point in the history
  • Loading branch information
rissson authored Jun 28, 2024
1 parent cb178f7 commit 136b7de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authentik/core/api/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Meta:
class ApplicationViewSet(UsedByMixin, ModelViewSet):
"""Application Viewset"""

queryset = Application.objects.all().prefetch_related("provider")
queryset = Application.objects.all().prefetch_related("provider").prefetch_related("policies")
serializer_class = ApplicationSerializer
search_fields = [
"name",
Expand Down

0 comments on commit 136b7de

Please sign in to comment.