diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-07-24 17:12:29 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-07-24 17:12:29 (GMT) |
commit | 55a4c77108fc018f481487dc4574d41ced9c6689 (patch) | |
tree | 08ec6c6dd64fa37b5b1b8e391e1f6b86572a6b72 /program/views.py | |
parent | 032354875c1e7142c3fbcc917fb3c644e5fa415d (diff) |
limited shows and host to active ones.
Diffstat (limited to 'program/views.py')
-rw-r--r-- | program/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/views.py b/program/views.py index 554641e..2f5c137 100644 --- a/program/views.py +++ b/program/views.py @@ -6,7 +6,7 @@ from models import BroadcastFormat, MusicFocus, Note, Show, ShowInformation, Sho from datetime import date, datetime, time, timedelta def show_list(request): - queryset = Show.objects.exclude(id=1) + queryset = Show.objects.filter(programslots__until__gt=date.today()).exclude(id=1).distinct() if 'broadcastformat' in request.GET: broadcastformat = get_object_or_404(BroadcastFormat, slug=request.GET['broadcastformat']) |