Commit a83ed11d authored by fred's avatar fred

exclude tracks with missing creation timestamp from recent page

parent 1af95e39
......@@ -223,7 +223,7 @@ class RecentTracksView(ListView):
template_name = 'nonstop/recent_tracks.html'
def get_queryset(self):
return Track.objects.all().order_by('-creation_timestamp')[:20]
return Track.objects.exclude(creation_timestamp__isnull=True).order_by('-creation_timestamp')[:20]
def post(self, request, *args, **kwargs):
for track_id in request.POST.getlist('track'):
......
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