diff options
Diffstat (limited to 'rest_framework/compat.py')
| -rw-r--r-- | rest_framework/compat.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 76dc0052..a19bd778 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -33,6 +33,12 @@ except ImportError:      from django.utils.encoding import force_unicode as force_text +# HttpResponseBase only exists from 1.5 onwards +try: +    from django.http.response import HttpResponseBase +except ImportError: +    from django.http import HttpResponse as HttpResponseBase +  # django-filter is optional  try:      import django_filters | 
