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',