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
commit412708fe276534689fd5f8256bb626bcb036c737 (patch)
tree0a195444cd3f776e939a795155163de9bbef15e3 /passlib/ext
parent2aa0105f6471a1df4bc528639dd3ced5a1666ea5 (diff)
downloadpasslib-412708fe276534689fd5f8256bb626bcb036c737.tar.gz
Fix Django 1.7 compatibility
(grafted from e9ab0efde79bf018ffabd85eb9afb517462a3cbf)
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,