diff options
| author | Tom Christie | 2015-02-17 10:25:56 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-02-17 10:25:56 +0000 | 
| commit | 76fe710c0d81cbf21f246de6026e7360179ea053 (patch) | |
| tree | 2072bce02b3c3d2ff6ad481f2da29813416cb915 | |
| parent | 4248a8d3fc725d9ae3fe7aaaad7ee12479ab07ab (diff) | |
| parent | daf1d59d0f41d2ea89e0b996d22b5d4e84914fb5 (diff) | |
| download | django-rest-framework-76fe710c0d81cbf21f246de6026e7360179ea053.tar.bz2 | |
Merge pull request #2565 from carltongibson/18-warning
Adjust importlib import
| -rw-r--r-- | rest_framework/settings.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/rest_framework/settings.py b/rest_framework/settings.py index 7331f265..8ccfd3ed 100644 --- a/rest_framework/settings.py +++ b/rest_framework/settings.py @@ -20,7 +20,11 @@ back to the defaults.  from __future__ import unicode_literals  from django.test.signals import setting_changed  from django.conf import settings -from django.utils import importlib, six +try: +    import importlib +except ImportError: +    from django.utils import importlib +from django.utils import six  from rest_framework import ISO_8601 | 
