From ee55380a6c1e73d37ede7ec992791ab36cc112b4 Mon Sep 17 00:00:00 2001 From: Antoine Date: Fri, 17 Apr 2015 16:49:32 +0100 Subject: [PATCH] Switched to standard import_module as the Django embedded one is deprecated and will be removed in next version --- rest_auth/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rest_auth/utils.py b/rest_auth/utils.py index 5c36b6b..20ba808 100644 --- a/rest_auth/utils.py +++ b/rest_auth/utils.py @@ -1,5 +1,9 @@ from six import string_types -from django.utils.importlib import import_module +import sys +if sys.version_info < (2, 6): + from django.utils.importlib import import_module +else: + from importlib import import_module def import_callable(path_or_callable):