Ticket #19799: fix2.patch

File fix2.patch, 604 bytes (added by Walter Doekes, 12 years ago)
  • django/contrib/auth/hashers.py

    old new  
    8383        except (AttributeError, ImportError, ValueError):
    8484            raise ImproperlyConfigured("hasher not found: %s" % backend)
    8585        hasher = hasher_cls()
    86         if not getattr(hasher, 'algorithm'):
     86        if getattr(hasher, 'algorithm', None) is None:
    8787            raise ImproperlyConfigured("hasher doesn't specify an "
    8888                                       "algorithm name: %s" % backend)
    8989        hashers.append(hasher)
Back to Top