Fix Django 1.3 auth

This commit is contained in:
Ross Lawley 2012-04-18 16:41:09 +01:00
commit 88dc64653e
3 changed files with 3 additions and 2 deletions

View file

@ -10,6 +10,7 @@ try:
from django.contrib.auth.hashers import check_password, make_password
except ImportError:
"""Handle older versions of Django"""
from django.utils.hashcompat import md5_constructor, sha_constructor
def get_hexdigest(algorithm, salt, raw_password):
raw_password, salt = smart_str(raw_password), smart_str(salt)