diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-04-13 18:53:29 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-04-13 18:53:29 (GMT) |
commit | 103a909a999ecb8e2bce2cf84e4ec39968223a53 (patch) | |
tree | e219a86a6b468b736a47f21061916b114be54427 /helsinki/program/templatetags/content_boxes.py | |
parent | ba41badf0171cd618034e4c9eb21893eaf1ccd90 (diff) |
getting real.
Diffstat (limited to 'helsinki/program/templatetags/content_boxes.py')
-rw-r--r-- | helsinki/program/templatetags/content_boxes.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/helsinki/program/templatetags/content_boxes.py b/helsinki/program/templatetags/content_boxes.py deleted file mode 100644 index 56c0afb..0000000 --- a/helsinki/program/templatetags/content_boxes.py +++ /dev/null @@ -1,30 +0,0 @@ -# http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ - -from django import template -register = template.Library() - -from helsinki.program.models import ( - BroadcastFormat, - MusicFocus, - ShowInformation, - ShowTopic) - -@register.inclusion_tag('program/box_broadcastformat.html') -def broadcastformat(): - broadcastformats = BroadcastFormat.objects.all() - return {'broadcastformats': broadcastformats} - -@register.inclusion_tag('program/box_musicfocus.html') -def musicfocus(): - musicfoci = MusicFocus.objects.all() - return {'musicfoci': musicfoci} - -@register.inclusion_tag('program/box_showinformation.html') -def showinformation(): - showinformations = ShowInformation.objects.all() - return {'showinformations': showinformations} - -@register.inclusion_tag('program/box_showtopic.html') -def showtopic(): - showtopics = ShowTopic.objects.all() - return {'showtopics': showtopics} |