From: Frédéric Péters Date: Wed, 4 Oct 2017 13:45:10 +0000 (+0200) Subject: include 50 tracks in recent view X-Git-Tag: v2021~314 X-Git-Url: https://git.0d.be/?p=django-panik-nonstop.git;a=commitdiff_plain;h=8a5f167bdb02a86c31eefa9e6a07d473cfae3e32 include 50 tracks in recent view --- 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'):