summaryrefslogtreecommitdiff
path: root/program/templatetags/content_boxes.py
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2021-02-24 22:26:27 (GMT)
committerChristian Pointner <equinox@helsinki.at>2021-02-24 22:26:27 (GMT)
commita1064414914efd53ef1c44ee12392fef8a0c0b0f (patch)
tree60588ab162cdd607f5236d73750e4d3d6217d793 /program/templatetags/content_boxes.py
parent1b2eb2aea52e754ad167c63259eec80e35497dfa (diff)
parentf7f4a5d5378b37c32b64bf0f71d0a438fd5d19d8 (diff)
Merge branch 'add-languages' into stable
Diffstat (limited to 'program/templatetags/content_boxes.py')
-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()}