Skip to content

Commit 982604d

Browse files
committed
fix: change order of query results to ascending by creation time
1 parent bc91e94 commit 982604d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/knowledge/serializers/paragraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def get_query_set(self):
319319
**{'title__icontains': self.data.get('title')})
320320
if 'content' in self.data:
321321
query_set = query_set.filter(**{'content__icontains': self.data.get('content')})
322-
query_set.order_by('-create_time', 'id')
322+
query_set = query_set.order_by('create_time', 'id')
323323
return query_set
324324

325325
def list(self):

0 commit comments

Comments
 (0)