Skip to content

Commit

Permalink
use importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
trbs committed May 22, 2015
1 parent 0d88a3c commit 5c68ee1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion constance/utils.py
Expand Up @@ -2,7 +2,10 @@
from collections import OrderedDict

from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
try:
from importlib import import_module
except ImportError:
from django.utils.importlib import import_module

CONFIGURATION_ERROR = ("Constance configuration key '%s' must have either a "
"2-tuple with default value and help text or a dictionary "
Expand Down

0 comments on commit 5c68ee1

Please sign in to comment.