diff options
author | Johannes Raggam <raggam-nl@adm.at> | 2011-04-10 19:33:58 (GMT) |
---|---|---|
committer | Johannes Raggam <raggam-nl@adm.at> | 2011-04-10 19:33:58 (GMT) |
commit | 7325fc951fb2ef493b9958619d7861e864be0ae3 (patch) | |
tree | b386d80f07694b26b2cfbee95dd6461a0cfc179e /helsinki/program/templatetags | |
parent | bf002915e8ef950419f9cc64cb2b2946e03d8193 (diff) |
templatetags introduced
Diffstat (limited to 'helsinki/program/templatetags')
-rw-r--r-- | helsinki/program/templatetags/__init__.py | 0 | ||||
-rw-r--r-- | helsinki/program/templatetags/content_boxes.py | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/helsinki/program/templatetags/__init__.py b/helsinki/program/templatetags/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/helsinki/program/templatetags/__init__.py diff --git a/helsinki/program/templatetags/content_boxes.py b/helsinki/program/templatetags/content_boxes.py new file mode 100644 index 0000000..c43d3f3 --- /dev/null +++ b/helsinki/program/templatetags/content_boxes.py @@ -0,0 +1,15 @@ +# 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_broadcastformats.html') +def broadcastformats(): + broadcastformats = BroadcastFormat.objects.all() + return {'broadcastformats': broadcastformats} |