diff --git a/beat/web/accounts/management/commands/year_revalidation_users.py b/beat/web/accounts/management/commands/year_revalidation_users.py index 90ae93b17b00372efed43c687a17967e62673a46..7b4021ada48ee850d48688a197e8e8bd7aaa5dde 100644 --- a/beat/web/accounts/management/commands/year_revalidation_users.py +++ b/beat/web/accounts/management/commands/year_revalidation_users.py @@ -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,