summaryrefslogtreecommitdiff
path: root/program/templatetags
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-04-19 18:25:37 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-04-19 18:25:37 (GMT)
commit3c78c9f3f4af3c52725947f277e37938fd6d4f08 (patch)
tree304010bbb643602965cfeba5684ab9b41de04b1b /program/templatetags
parent1d3301368c60efcb62dd4161e9e464c924b8f4d3 (diff)
fixed pep8/flake8 warnings. again.
Diffstat (limited to 'program/templatetags')
-rw-r--r--program/templatetags/content_boxes.py5
-rw-r--r--program/templatetags/timeslots.py4
2 files changed, 4 insertions, 5 deletions
diff --git a/program/templatetags/content_boxes.py b/program/templatetags/content_boxes.py
index 7f176c6..2d1745e 100644
--- a/program/templatetags/content_boxes.py
+++ b/program/templatetags/content_boxes.py
@@ -1,10 +1,9 @@
-# http://docs.djangoproject.com/en/1.2/howto/custom-template-tags/
-
from django import template
-register = template.Library()
from program.models import BroadcastFormat, MusicFocus, ShowInformation, ShowTopic
+register = template.Library()
+
@register.inclusion_tag('boxes/broadcastformat.html')
def broadcastformat():
diff --git a/program/templatetags/timeslots.py b/program/templatetags/timeslots.py
index c2c44b5..08e45b1 100644
--- a/program/templatetags/timeslots.py
+++ b/program/templatetags/timeslots.py
@@ -1,9 +1,9 @@
from django import template
-register = template.Library()
-
from datetime import datetime, time, timedelta
+register = template.Library()
+
@register.simple_tag
def duration(start, end):