Code cleanup some small changes in the formatting.
This commit is contained in:
@@ -56,8 +56,8 @@ class ActivationManager(models.Manager):
|
||||
"""Creates a PendingActivation instance with an random activation key.
|
||||
@param user: the user that requests activation.
|
||||
"""
|
||||
salt = str(user.pk * random.random()) + \
|
||||
user.registration_date.isoformat()
|
||||
salt = str(user.pk * random.random())
|
||||
salt += user.registration_date.isoformat()
|
||||
activation_key = hashlib.sha1(salt.encode()).hexdigest()
|
||||
return self.create(user=user, activation_key=activation_key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user