We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38c19a4 commit 545e2b6Copy full SHA for 545e2b6
apps/blog/views.py
@@ -85,7 +85,7 @@ def get_context_data_all(**kwargs):
85
comment.body = comment.body[:LENGTH_IN_RIGHT_INDEX + 1] + '...'
86
kwargs['recent_comment'] = recent_comment
87
hot_article = Article.objects.filter(
88
- status='p').order_by('-weight', '-created_time')[:5]
+ status='p').order_by('-weight', '-created_time')[:10]
89
for article in hot_article:
90
if len(article.title) > LENGTH_IN_RIGHT_INDEX:
91
article.title = article.title[:LENGTH_IN_RIGHT_INDEX + 1] + '...'
0 commit comments