diff --git a/lms/djangoapps/verify_student/management/commands/send_verification_expiry_email.py b/lms/djangoapps/verify_student/management/commands/send_verification_expiry_email.py index d304420477052c252d30a0d06001df0ff0dbe50b..e38b6de1a4cd2c60f3a71bbfa9297bea1d44a638 100644 --- a/lms/djangoapps/verify_student/management/commands/send_verification_expiry_email.py +++ b/lms/djangoapps/verify_student/management/commands/send_verification_expiry_email.py @@ -144,7 +144,7 @@ def send_verification_expiry_email(batch_verifications, dry_run=False): ) return - site = Site.objects.get(name=settings.SITE_NAME) + site = Site.objects.get_current() message_context = get_base_template_context(site) message_context.update({ 'platform_name': settings.PLATFORM_NAME,