summaryrefslogtreecommitdiff
path: root/program/templatetags
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-01-06 19:03:56 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-01-06 19:03:56 (GMT)
commitc547dce30366b3a6097008086cbc0b917c6a2f85 (patch)
tree95ab3a86af602f6574180d1c74479c5a2c0c3b40 /program/templatetags
parent1471381dfe74411934ec51f88bb5c4e7e47f2c36 (diff)
formated templates and updated templatetags
Diffstat (limited to 'program/templatetags')
-rw-r--r--program/templatetags/content_boxes.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/program/templatetags/content_boxes.py b/program/templatetags/content_boxes.py
index 6e2b6c7..7f176c6 100644
--- a/program/templatetags/content_boxes.py
+++ b/program/templatetags/content_boxes.py
@@ -8,23 +8,19 @@ from program.models import BroadcastFormat, MusicFocus, ShowInformation, ShowTop
@register.inclusion_tag('boxes/broadcastformat.html')
def broadcastformat():
- broadcastformats = BroadcastFormat.objects.filter(enabled=True)
- return {'broadcastformats': broadcastformats}
+ return {'broadcastformat_list': BroadcastFormat.objects.filter(enabled=True)}
@register.inclusion_tag('boxes/musicfocus.html')
def musicfocus():
- musicfoci = MusicFocus.objects.all()
- return {'musicfoci': musicfoci}
+ return {'musicfocus_list': MusicFocus.objects.all()}
@register.inclusion_tag('boxes/showinformation.html')
def showinformation():
- showinformations = ShowInformation.objects.all()
- return {'showinformations': showinformations}
+ return {'showinformation_list': ShowInformation.objects.all()}
@register.inclusion_tag('boxes/showtopic.html')
def showtopic():
- showtopics = ShowTopic.objects.all()
- return {'showtopics': showtopics}
+ return {'showtopic_list': ShowTopic.objects.all()}