Commit 2b5a1398 authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[ui][registration][models] Generate temporary url through model manager

for newly created users
parent d3c7109b
......@@ -144,8 +144,7 @@ class RegistrationManager(models.Manager):
parsed_url.hostname,
)
temp_url = TemporaryUrl()
temp_url._generate_temporary_url(TemporaryUrl.VALIDATION, supervisiontrack)
temp_url = TemporaryUrl.objects.create_temporary_url(TemporaryUrl.VALIDATION, supervisiontrack)
context = {
"supervisor": supervisor_user,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment