From 8a5f167bdb02a86c31eefa9e6a07d473cfae3e32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 4 Oct 2017 15:45:10 +0200 Subject: [PATCH] include 50 tracks in recent view --- nonstop/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonstop/views.py b/nonstop/views.py index 136abcc..6e26e50 100644 --- a/nonstop/views.py +++ b/nonstop/views.py @@ -223,7 +223,7 @@ class RecentTracksView(ListView): template_name = 'nonstop/recent_tracks.html' def get_queryset(self): - return Track.objects.exclude(creation_timestamp__isnull=True).order_by('-creation_timestamp')[:20] + return Track.objects.exclude(creation_timestamp__isnull=True).order_by('-creation_timestamp')[:50] def post(self, request, *args, **kwargs): for track_id in request.POST.getlist('track'): -- 2.39.2