feat: added comments sort

This commit is contained in:
ITQ
2025-01-25 22:20:05 +03:00
parent d8c18cee78
commit 43baa2af5c
+1 -1
View File
@@ -324,7 +324,7 @@ def list_comments(
promocodes = promocodes.prefetch_related("comments", "comments__author") promocodes = promocodes.prefetch_related("comments", "comments__author")
comments = promocodes.first().comments.all() comments = promocodes.first().comments.order_by("-date").all()
response["X-Total-Count"] = len(comments) response["X-Total-Count"] = len(comments)