From 2471c12cc45f3d127c8a7828d9105926261abc18 Mon Sep 17 00:00:00 2001 From: Zainab Amir Date: Mon, 8 Apr 2019 12:54:34 +0500 Subject: [PATCH] Get current site by ID Getting current site by NAME was failing on stage. LEARNER-5408 --- .../management/commands/send_verification_expiry_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d304420477..e38b6de1a4 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,