diff --git a/beat/web/accounts/management/commands/postpone_users_validation.py b/beat/web/accounts/management/commands/postpone_users_validation.py index 9e698f7f7b3681754eeb3ed22422b03b77896e4d..3cf31ef2307d94e6d31546d04a9be218153868f0 100644 --- a/beat/web/accounts/management/commands/postpone_users_validation.py +++ b/beat/web/accounts/management/commands/postpone_users_validation.py @@ -77,10 +77,6 @@ class Command(BaseCommand): for invalid_profile in invalid_userprofiles_new_users: user = invalid_profile.user - supervisiontracks = SupervisionTrack.objects.filter( - supervision_key=invalid_profile.supervision_key - ) - expiration_date_delta = datetime.timedelta( days=settings.ACCOUNT_ACTIVATION_DAYS ) @@ -95,10 +91,6 @@ class Command(BaseCommand): for invalid_profile in invalid_userprofiles_waiting_validation: user = invalid_profile.user - supervisiontracks = SupervisionTrack.objects.filter( - supervision_key=invalid_profile.supervision_key - ) - expiration_date_delta = datetime.timedelta( days=settings.ACCOUNT_ACTIVATION_DAYS_FROM_SUPERVISOR )