diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-09 13:19:34 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-09 14:24:06 -0500 |
| commit | a8b70d251d238b4e6cfc7bb4296da15494f8dff3 (patch) | |
| tree | 94ef5bc53e59131906aecfcf792eeac86242aa62 /django/views/decorators/http.py | |
| parent | eb406aa686ff1809903366ef6896037af2f1f69b (diff) | |
[1.8.x] Sorted imports with isort; refs #23860.
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
Diffstat (limited to 'django/views/decorators/http.py')
| -rw-r--r-- | django/views/decorators/http.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/django/views/decorators/http.py b/django/views/decorators/http.py index 990c3770db..4399182fbd 100644 --- a/django/views/decorators/http.py +++ b/django/views/decorators/http.py @@ -6,10 +6,14 @@ import logging from calendar import timegm from functools import wraps -from django.utils.decorators import decorator_from_middleware, available_attrs -from django.utils.http import http_date, parse_http_date_safe, parse_etags, quote_etag +from django.http import ( + HttpResponse, HttpResponseNotAllowed, HttpResponseNotModified, +) from django.middleware.http import ConditionalGetMiddleware -from django.http import HttpResponseNotAllowed, HttpResponseNotModified, HttpResponse +from django.utils.decorators import available_attrs, decorator_from_middleware +from django.utils.http import ( + http_date, parse_etags, parse_http_date_safe, quote_etag, +) conditional_page = decorator_from_middleware(ConditionalGetMiddleware) |
