mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 13:00:12 +03:00
Fix isort
This commit is contained in:
parent
746c26145f
commit
5eac27f916
|
@ -7,7 +7,6 @@ from django.http import Http404
|
|||
|
||||
from rest_framework.compat import is_authenticated
|
||||
|
||||
|
||||
SAFE_METHODS = ('GET', 'HEAD', 'OPTIONS')
|
||||
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@ from django.utils.translation import ugettext_lazy as _
|
|||
|
||||
from rest_framework import exceptions, renderers, serializers
|
||||
from rest_framework.compat import (
|
||||
RegexURLPattern, RegexURLResolver, coreapi, coreschema, uritemplate, urlparse
|
||||
RegexURLPattern, RegexURLResolver, coreapi, coreschema, uritemplate,
|
||||
urlparse
|
||||
)
|
||||
from rest_framework.request import clone_request
|
||||
from rest_framework.response import Response
|
||||
|
@ -22,7 +23,6 @@ from rest_framework.utils import formatting
|
|||
from rest_framework.utils.model_meta import _get_pk
|
||||
from rest_framework.views import APIView
|
||||
|
||||
|
||||
header_regex = re.compile('^[a-zA-Z][0-9A-Za-z_]*:')
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
import markdown
|
||||
import re
|
||||
|
||||
from django import template
|
||||
|
@ -9,13 +8,14 @@ from django.utils import six
|
|||
from django.utils.encoding import force_text, iri_to_uri
|
||||
from django.utils.html import escape, format_html, smart_urlquote
|
||||
from django.utils.safestring import SafeData, mark_safe
|
||||
from markdown.extensions.fenced_code import FencedBlockPreprocessor
|
||||
|
||||
from rest_framework.compat import NoReverseMatch, reverse, template_render
|
||||
from rest_framework.compat import (
|
||||
NoReverseMatch, markdown, reverse, template_render
|
||||
)
|
||||
from rest_framework.renderers import HTMLFormRenderer
|
||||
from rest_framework.utils.urls import replace_query_param
|
||||
|
||||
from markdown.extensions.fenced_code import FencedBlockPreprocessor
|
||||
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user