aboutsummaryrefslogtreecommitdiffstats
path: root/api/viewsets.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/viewsets.py')
-rw-r--r--api/viewsets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/viewsets.py b/api/viewsets.py
index e923ffb3..f8dd13e8 100644
--- a/api/viewsets.py
+++ b/api/viewsets.py
@@ -800,4 +800,4 @@ class UserViewSet(BulkCreateModelMixin, ModelViewSet):
"""
serializer_class = UserSerializer
- queryset = User.objects.all()
+ queryset = User.objects.prefetch_related('roles')