mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Enhance UserViewSet queryset to prefetch related channel_profiles for improved performance
This commit is contained in:
parent
22e1a8cc05
commit
dfaae6e617
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ class AuthViewSet(viewsets.ViewSet):
|
|||
class UserViewSet(viewsets.ModelViewSet):
|
||||
"""Handles CRUD operations for Users"""
|
||||
|
||||
queryset = User.objects.all()
|
||||
queryset = User.objects.all().prefetch_related('channel_profiles')
|
||||
serializer_class = UserSerializer
|
||||
|
||||
def get_permissions(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue