diff options
author | Christian Pointner <equinox@helsinki.at> | 2021-02-17 17:50:37 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2021-02-17 17:50:37 (GMT) |
commit | aafc069b9d6945138c2c2de1228f1a52c22d3c40 (patch) | |
tree | d9e6d23fd7a10d66d41c59d8e055053d7b5df72c /program/templatetags | |
parent | 8fa0d03d3509290ea6f523c2223966b1a2b73488 (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.py | 7 |
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()} |