summaryrefslogtreecommitdiff
path: root/program/views.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-08-17 22:03:32 (GMT)
committerGitHub <noreply@github.com>2016-08-17 22:03:32 (GMT)
commit0c2a864cc58acf436d49a09877ca55dd2c3b4fc4 (patch)
treea92f0f3ccdc212f34bc67db43e7fb5f2da8f5075 /program/views.py
parent6990ff7f88f827d7193cb5ddef0be22546bccd23 (diff)
parent8531fd1756b37cf4c5d7c14d22dc9fb5057e0e74 (diff)
Merge pull request #3 from radio-helsinki-graz/recognize_activity
Recognize activity
Diffstat (limited to 'program/views.py')
-rw-r--r--program/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/views.py b/program/views.py
index cfebbd1..94164b6 100644
--- a/program/views.py
+++ b/program/views.py
@@ -15,19 +15,19 @@ from program.utils import tofirstdayinisoweek
class HostListView(ListView):
context_object_name = 'host_list'
- queryset = Host.objects.filter(Q(is_active=True) | Q(is_always_visible=True)).distinct()
+ queryset = Host.objects.filter(is_always_visible=True).distinct()
template_name = 'host_list.html'
class HostDetailView(DetailView):
context_object_name = 'host'
- queryset = Host.objects.filter(Q(is_active=True) | Q(is_always_visible=True)).distinct()
+ queryset = Host.objects.filter(is_always_visible=True).distinct()
template_name = 'host_detail.html'
class ShowListView(ListView):
context_object_name = 'show_list'
- queryset = Show.objects.filter(is_active=True).exclude(id=1).distinct()
+ queryset = Show.objects.exclude(id=1).distinct()
template_name = 'show_list.html'
def get_queryset(self):