diff --git a/hb_server/apps/cms/views.py b/hb_server/apps/cms/views.py index 0d918e9..f1ebf9a 100644 --- a/hb_server/apps/cms/views.py +++ b/hb_server/apps/cms/views.py @@ -16,7 +16,7 @@ class ArticleViewSet(CreateUpdateModelAMixin, ModelViewSet): filterset_fields = ['is_top', 'is_published'] serializer_class = ArticleListSerializer search_fields = ['title', 'author'] - ordering = ['is_published', 'is_top', 'update_time'] + ordering = ['-is_published', '-is_top', '-update_time'] def get_serializer_class(self): if self.action in ['create', 'update']: