CJ 1 년 전
부모
커밋
b20e1028f7
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      blog/controller/article.py

+ 1 - 2
blog/controller/article.py

@@ -251,9 +251,8 @@ def get_article(top: int = -1, page: int = -1, is_paginator: bool = False, categ
                                                                                                        'user__first_name',
                                                                                                        'user_id',
                                                                                                        'user__last_name',
-                                                                                                       'tags__name',
                                                                                                        'is_top',
-                                                                                                       'html_text')
+                                                                                                       'html_text').distinct()
     elif tag is not None:
         articles = models.Article.objects.filter(tags__name=tag.name).order_by('-created_time').values('id', 'title',
                                                                                                        'intro',