summaryrefslogtreecommitdiff
path: root/program/views.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <ernesto.rico-schmidt@evolaris.net>2016-08-17 17:00:51 (GMT)
committerErnesto Rico-Schmidt <ernesto.rico-schmidt@evolaris.net>2016-08-17 17:00:51 (GMT)
commit8cc0a1dae3ded38934e2f33e169e01d101d1b577 (patch)
tree48f5a3c1d1ed52eaede8869398196645517452a3 /program/views.py
parent6990ff7f88f827d7193cb5ddef0be22546bccd23 (diff)
removed is_active from Host, Show and ProgramSlot.
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):