From 4013a2e789f2efa5e549cf08453c567fc31ca304 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 7 Mar 2017 11:26:16 +0000 Subject: [PATCH] Import sorting --- rest_framework/templatetags/rest_framework.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rest_framework/templatetags/rest_framework.py b/rest_framework/templatetags/rest_framework.py index 999b43b71..0394dd9dd 100644 --- a/rest_framework/templatetags/rest_framework.py +++ b/rest_framework/templatetags/rest_framework.py @@ -1,8 +1,8 @@ from __future__ import absolute_import, unicode_literals import re - from collections import OrderedDict + from django import template from django.template import loader from django.utils import six @@ -11,12 +11,11 @@ from django.utils.html import escape, format_html, smart_urlquote from django.utils.safestring import SafeData, mark_safe from rest_framework.compat import ( - NoReverseMatch, markdown, reverse, template_render, pygments_highlight + NoReverseMatch, markdown, pygments_highlight, reverse, template_render ) from rest_framework.renderers import HTMLFormRenderer from rest_framework.utils.urls import replace_query_param - register = template.Library() # Regex for adding classes to html snippets