fixed problem with generating random nickname.
This commit is contained in:
parent
257c62484e
commit
478456da15
@ -7,10 +7,10 @@ from django.dispatch import receiver
|
||||
from django.db.models.signals import post_save
|
||||
|
||||
def _create_unique_string():
|
||||
time = f"pucko {timezone.now} prutt"
|
||||
m = hashlib.blake2s()
|
||||
m.update(str.encode(time))
|
||||
return m.hexdigest()[16:52]
|
||||
time = f"pucko {timezone.now()} prutt"
|
||||
m = hashlib.blake2s()
|
||||
m.update(str.encode(time))
|
||||
return m.hexdigest()[16:52]
|
||||
|
||||
class User_Profile(models.Model):
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user