From 3cbfa6bae13bebcaf2240758336ef8d09830e19e Mon Sep 17 00:00:00 2001 From: JBH Date: Thu, 12 Oct 2023 20:08:25 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=ED=95=84=ED=84=B0=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/views.py b/chat/views.py index 0bc1a7b..a9783e0 100644 --- a/chat/views.py +++ b/chat/views.py @@ -37,7 +37,7 @@ def censor_content(content): class ChatViewSet(viewsets.GenericViewSet, mixins.RetrieveModelMixin, mixins.ListModelMixin, mixins.CreateModelMixin): # queryset 가져오는 함수 오버라이딩 (최신순으로 정렬) def get_queryset(self): - queryset = Chat.objects.filter(id__lte=719, id__gte=925).order_by('-created_at') + queryset = Chat.objects.order_by('-created_at') return queryset serializer_class = ChatSerializer pagination_class = ChatPagination