Skip to content
Snippets Groups Projects
Commit eddc93c8 authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[accounts][management][commands] Generate temporary url through model manager...

[accounts][management][commands] Generate temporary url through model manager for yearly account revalidation
parent 2b5a1398
No related branches found
No related tags found
1 merge request!328Improve automatic emails with temporary urls
Pipeline #39824 passed
This commit is part of merge request !328. Comments created here will be created in the context of that merge request.
......@@ -211,8 +211,7 @@ class Command(BaseCommand):
if supervisiontrack.expiration_date.date() - now.date() == datetime.timedelta(days=expiration_reminder):
warned_count += 1
temp_url = TemporaryUrl()
temp_url._generate_temporary_url(TemporaryUrl.YEARREVALIDATION, supervisiontrack)
temp_url = TemporaryUrl.objects.create_temporary_url(TemporaryUrl.YEARREVALIDATION, supervisiontrack)
context = {
'user': 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