Skip to content

Commit

Permalink
Changed chats list order to descending (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
suprabathk authored Sep 1, 2023
1 parent 645d792 commit 3ae237c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ayushma/views/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_queryset(self):
if user.is_superuser and self.action == "list_all":
return queryset

return queryset.filter(user=user)
return queryset.filter(user=user).order_by("-created_at")

def perform_create(self, serializer):
project_id = self.kwargs["project_external_id"]
Expand Down

0 comments on commit 3ae237c

Please sign in to comment.