]> git.0d.be Git - django-panik-nonstop.git/commitdiff
include 50 tracks in recent view
authorFrédéric Péters <fpeters@0d.be>
Wed, 4 Oct 2017 13:45:10 +0000 (15:45 +0200)
committerFrédéric Péters <fpeters@0d.be>
Wed, 4 Oct 2017 13:45:10 +0000 (15:45 +0200)
nonstop/views.py

index 136abcc6a18aef154ea0e0a79450272e35ad78d4..6e26e50d436c58362b122b645bbadd38232f353b 100644 (file)
@@ -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'):