Skip to content

Commit

Permalink
fixup! 🚨(backend) fix Django UnorderedObjectListWarning on User
Browse files Browse the repository at this point in the history
  • Loading branch information
lebaudantoine committed Jan 13, 2025
1 parent 79e14c1 commit 8005bba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/core/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class UserViewSet(
permission_classes = [permissions.IsSelf]
queryset = models.User.objects.all()
serializer_class = serializers.UserSerializer
ordering = ["-created_at"]

def get_queryset(self):
"""
Expand Down

0 comments on commit 8005bba

Please sign in to comment.