Get current site by ID

Getting current site by NAME was failing on stage.

LEARNER-5408
This commit is contained in:
Zainab Amir
2019-04-08 12:54:34 +05:00
parent 3955dab574
commit 2471c12cc4

View File

@@ -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,