summaryrefslogtreecommitdiff
path: root/patchwork/templatetags
diff options
context:
space:
mode:
authorStephen Finucane <stephen.finucane@intel.com>2015-11-26 19:26:02 +0000
committerStephen Finucane <stephen.finucane@intel.com>2015-12-03 22:08:54 +0000
commitc9ad6b85d8eaf3ead23384bb227dcc89545c42a8 (patch)
tree97dee3afd1881f20a5f1c2305f96fb4011fdc1de /patchwork/templatetags
parent6cb7c6c52ed0523de59178755057b9a1ae6dcce2 (diff)
downloadpatchwork-c9ad6b85d8eaf3ead23384bb227dcc89545c42a8.tar
patchwork-c9ad6b85d8eaf3ead23384bb227dcc89545c42a8.tar.gz
trivial: Reorder imports
Imports are easier to read if they are grouped by type (standard library, third party, application) and organised alphabetically. Make it so. Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'patchwork/templatetags')
-rw-r--r--patchwork/templatetags/listurl.py8
-rw-r--r--patchwork/templatetags/patch.py2
-rw-r--r--patchwork/templatetags/person.py7
-rw-r--r--patchwork/templatetags/syntax.py4
4 files changed, 14 insertions, 7 deletions
diff --git a/patchwork/templatetags/listurl.py b/patchwork/templatetags/listurl.py
index 9e6e9f1..118fd58 100644
--- a/patchwork/templatetags/listurl.py
+++ b/patchwork/templatetags/listurl.py
@@ -19,12 +19,14 @@
from __future__ import absolute_import
+from django.conf import settings
+from django.core.urlresolvers import reverse, NoReverseMatch
from django import template
-from django.utils.html import escape
from django.utils.encoding import smart_str
+from django.utils.html import escape
+
from patchwork.filters import filterclasses
-from django.conf import settings
-from django.core.urlresolvers import reverse, NoReverseMatch
+
register = template.Library()
diff --git a/patchwork/templatetags/patch.py b/patchwork/templatetags/patch.py
index 79cc923..7b79b7c 100644
--- a/patchwork/templatetags/patch.py
+++ b/patchwork/templatetags/patch.py
@@ -25,8 +25,8 @@ from django.utils.safestring import mark_safe
from patchwork.models import Check
-register = template.Library()
+register = template.Library()
@register.filter(name='patch_tags')
def patch_tags(patch):
diff --git a/patchwork/templatetags/person.py b/patchwork/templatetags/person.py
index b575689..a3d43a9 100644
--- a/patchwork/templatetags/person.py
+++ b/patchwork/templatetags/person.py
@@ -19,12 +19,15 @@
from __future__ import absolute_import
+import re
+
+from django.core.urlresolvers import reverse
from django import template
from django.utils.html import escape
from django.utils.safestring import mark_safe
-from django.core.urlresolvers import reverse
+
from patchwork.filters import SubmitterFilter
-import re
+
register = template.Library()
diff --git a/patchwork/templatetags/syntax.py b/patchwork/templatetags/syntax.py
index bf90b87..3988f61 100644
--- a/patchwork/templatetags/syntax.py
+++ b/patchwork/templatetags/syntax.py
@@ -19,10 +19,12 @@
from __future__ import absolute_import
+import re
+
from django import template
from django.utils.html import escape
from django.utils.safestring import mark_safe
-import re
+
register = template.Library()