Commits

James Bennett committed eed2740

The other half of the previous commit; tests now pass again

Comments (0)

Files changed (1)

registration/models.py

         
         """
         salt = sha_constructor(str(random.random())).hexdigest()[:5]
-        activation_key = sha.new(salt+user.username).hexdigest()
+        activation_key = sha_constructor(salt+user.username).hexdigest()
         return self.create(user=user,
                            activation_key=activation_key)