diff options
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) |
