diff --git a/conntrackt/templatetags/conntrackt_tags.py b/conntrackt/templatetags/conntrackt_tags.py --- a/conntrackt/templatetags/conntrackt_tags.py +++ b/conntrackt/templatetags/conntrackt_tags.py @@ -1,8 +1,8 @@ -# Import Django's template library. +# Django imports. from django import template -# Import for determining the active URL. from django.core import urlresolvers + # Get an instance of Django's template library. register = template.Library() @@ -72,7 +72,7 @@ def iptables(communication): return rule_template % values -@register.simple_tag(takes_context = True) +@register.simple_tag(takes_context=True) def active_link(context, url_name, return_value='active', **kwargs): """ This template tag can be used to check if the provided URL matches against