Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!328Improve automatic emails with temporary urls
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment