diff --git a/apps/core/serializers/article.py b/apps/core/serializers/article.py index 3ed70e74..c3bdc14b 100644 --- a/apps/core/serializers/article.py +++ b/apps/core/serializers/article.py @@ -253,7 +253,7 @@ def get_side_articles(self, obj) -> dict: after = None elif from_view == "top": before = articles.filter(created_at__lte=obj.created_at).first() - after = articles.filter(created__gte=obj.created_at).last() + after = articles.filter(created_at__gte=obj.created_at).last() else: before = articles.filter(created_at__lte=obj.created_at).first() after = articles.filter(created_at__gte=obj.created_at).last()