blob: 811216bf1b54151e33487c421290ef3b87117b14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
from django import template
from program.models import BroadcastFormat, MusicFocus, ShowInformation, ShowTopic, Language
register = template.Library()
@register.inclusion_tag('v2/filters/broadcastformat.html')
def broadcastformatV2():
return {'broadcastformat_list': BroadcastFormat.objects.filter(enabled=True)}
@register.inclusion_tag('v2/filters/musicfocus.html')
def musicfocusV2():
return {'musicfocus_list': MusicFocus.objects.all()}
@register.inclusion_tag('v2/filters/showinformation.html')
def showinformationV2():
return {'showinformation_list': ShowInformation.objects.all()}
@register.inclusion_tag('v2/filters/showtopic.html')
def showtopicV2():
return {'showtopic_list': ShowTopic.objects.all()}
@register.inclusion_tag('v2/filters/language.html')
def languageV2():
return {'language_list': Language.objects.all()}
|