summaryrefslogtreecommitdiff
path: root/passlib/ext
diff options
context:
space:
mode:
authorMichael P. Jung <michael.jung@terreon.de>2014-12-04 14:10:48 +0100
committerMichael P. Jung <michael.jung@terreon.de>2014-12-04 14:10:48 +0100
commit3f11055a6c11b2d3cc3fb9aecd10b4ea1e7432bd (patch)
tree1ff1b1dd20ef7ad11ebb093fbaa5874f94a2b0e8 /passlib/ext
parent087e4ed74d846af28e210d37124f19eead806e84 (diff)
downloadpasslib-3f11055a6c11b2d3cc3fb9aecd10b4ea1e7432bd.tar.gz
Fix Django 1.7 compatibility
Diffstat (limited to 'passlib/ext')
-rw-r--r--passlib/ext/django/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/passlib/ext/django/utils.py b/passlib/ext/django/utils.py
index e810998..863f11e 100644
--- a/passlib/ext/django/utils.py
+++ b/passlib/ext/django/utils.py
@@ -186,7 +186,9 @@ class _HasherWrapper(object):
_translate_kwds = dict(checksum="hash", rounds="iterations")
def safe_summary(self, encoded):
- from django.contrib.auth.hashers import mask_hash, _, SortedDict
+ from django.contrib.auth.hashers import mask_hash
+ from django.utils.translation import ugettext_noop as _
+ from django.utils.datastructures import SortedDict
handler = self.passlib_handler
items = [
# since this is user-facing, we're reporting passlib's name,