diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2014-04-29 22:22:00 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2014-04-29 22:22:00 (GMT) |
commit | ac251a798769bc5909d25a1f95a98822d46bfbb8 (patch) | |
tree | 46e3753599dbe8e02d6299a557ba707bedbd3acc /program/templatetags/content_boxes.py | |
parent | 185a79985c93c44e058ab4bf0345d2dafc4148ee (diff) |
pep8-ized code
Diffstat (limited to 'program/templatetags/content_boxes.py')
-rw-r--r-- | program/templatetags/content_boxes.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/templatetags/content_boxes.py b/program/templatetags/content_boxes.py index b56f0d2..6e2b6c7 100644 --- a/program/templatetags/content_boxes.py +++ b/program/templatetags/content_boxes.py @@ -5,21 +5,25 @@ register = template.Library() from program.models import BroadcastFormat, MusicFocus, ShowInformation, ShowTopic + @register.inclusion_tag('boxes/broadcastformat.html') def broadcastformat(): broadcastformats = BroadcastFormat.objects.filter(enabled=True) return {'broadcastformats': broadcastformats} + @register.inclusion_tag('boxes/musicfocus.html') def musicfocus(): musicfoci = MusicFocus.objects.all() return {'musicfoci': musicfoci} + @register.inclusion_tag('boxes/showinformation.html') def showinformation(): showinformations = ShowInformation.objects.all() return {'showinformations': showinformations} + @register.inclusion_tag('boxes/showtopic.html') def showtopic(): showtopics = ShowTopic.objects.all() |