From a7e37419316c72ad89253123cc4577f1f4648673 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 15 Feb 2012 20:52:13 +0100 Subject: show up to 20 recommandtions in box diff --git a/program/views.py b/program/views.py index 4bad7f8..c3d1b03 100644 --- a/program/views.py +++ b/program/views.py @@ -31,7 +31,7 @@ def recommendations(request, template_name='program/recommendations.html'): now = datetime.now() in_one_week = now + timedelta(weeks=1) - queryset = Note.objects.filter(status=1, timeslot__start__range=(now, in_one_week))[:10] + queryset = Note.objects.filter(status=1, timeslot__start__range=(now, in_one_week))[:20] return list_detail.object_list(request, queryset=queryset, template_name=template_name, template_object_name='recommendation') -- cgit v0.10.2