Commit 2d049728 authored by HEVELINE Thomas's avatar HEVELINE Thomas

affichage d'un peu plus de news

parent 52789a1f
......@@ -9,7 +9,7 @@ from . import models
def index(request):
context = {
'news': models.New.objects.order_by('pub_date').all().reverse().select_related('author__profile').annotate(nb_comments=Count('comments'))[:10],
'news': models.New.objects.order_by('pub_date').all().reverse().select_related('author__profile').annotate(nb_comments=Count('comments'))[:20],
}
return render(request, "news/index.html", context)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment