summaryrefslogtreecommitdiff
path: root/helsinki/program/templatetags/content_boxes.py
blob: c43d3f31b68c420c8d0f618e38bec131868fb9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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}