summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-02-12 18:45:47 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-02-12 18:46:45 (GMT)
commitc8ae3f3e402ca38e2d755061125ab570aef842cb (patch)
tree1fd706525dcde1deab2efd3a0507a577defdb204
parent4653abe588ab43fa77482a112dcd1c0f887caaa1 (diff)
added is_
-rw-r--r--program/models.py2
-rw-r--r--program/views.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/program/models.py b/program/models.py
index 11ec7f1..db82377 100644
--- a/program/models.py
+++ b/program/models.py
@@ -210,7 +210,7 @@ class MusicFocus(models.Model):
class Host(models.Model):
name = models.CharField(_("Name"), max_length=128)
- always_visible = models.BooleanField(_("Always visible"), default=False)
+ is_always_visible = models.BooleanField(_("Is always visible"), default=False)
is_active = models.BooleanField(_("Is active"), default=True, editable=False)
email = models.EmailField(_("E-Mail"), blank=True)
website = models.URLField(_("Website"), blank=True)
diff --git a/program/views.py b/program/views.py
index dcfaca9..3248507 100644
--- a/program/views.py
+++ b/program/views.py
@@ -15,13 +15,13 @@ from program.utils import tofirstdayinisoweek
class HostListView(ListView):
context_object_name = 'host_list'
- queryset = Host.objects.filter(Q(is_active=True) | Q(always_visible=True)).distinct()
+ queryset = Host.objects.filter(Q(is_active=True) | Q(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(always_visible=True)).distinct()
+ queryset = Host.objects.filter(Q(is_active=True) | Q(is_always_visible=True)).distinct()
template_name = 'host_detail.html'