Ticket #19799: fix2.patch
File fix2.patch, 604 bytes (added by , 12 years ago) |
---|
-
django/contrib/auth/hashers.py
old new 83 83 except (AttributeError, ImportError, ValueError): 84 84 raise ImproperlyConfigured("hasher not found: %s" % backend) 85 85 hasher = hasher_cls() 86 if not getattr(hasher, 'algorithm'):86 if getattr(hasher, 'algorithm', None) is None: 87 87 raise ImproperlyConfigured("hasher doesn't specify an " 88 88 "algorithm name: %s" % backend) 89 89 hashers.append(hasher)