summaryrefslogtreecommitdiff
path: root/program/templatetags
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2021-02-17 17:50:37 (GMT)
committerChristian Pointner <equinox@helsinki.at>2021-02-17 17:50:37 (GMT)
commitaafc069b9d6945138c2c2de1228f1a52c22d3c40 (patch)
treed9e6d23fd7a10d66d41c59d8e055053d7b5df72c /program/templatetags
parent8fa0d03d3509290ea6f523c2223966b1a2b73488 (diff)
fix model for new language field and add language filter to show list template
Diffstat (limited to 'program/templatetags')
-rw-r--r--program/templatetags/content_boxes.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/templatetags/content_boxes.py b/program/templatetags/content_boxes.py
index 2d1745e..ece466b 100644
--- a/program/templatetags/content_boxes.py
+++ b/program/templatetags/content_boxes.py
@@ -1,6 +1,6 @@
from django import template
-from program.models import BroadcastFormat, MusicFocus, ShowInformation, ShowTopic
+from program.models import BroadcastFormat, MusicFocus, ShowInformation, ShowTopic, Language
register = template.Library()
@@ -23,3 +23,8 @@ def showinformation():
@register.inclusion_tag('boxes/showtopic.html')
def showtopic():
return {'showtopic_list': ShowTopic.objects.all()}
+
+
+@register.inclusion_tag('boxes/language.html')
+def language():
+ return {'language_list': Language.objects.all()}