changed hashcompat call to hashlib call, see https://code.djangoproject.com/ticket/20475