Skip to content
Snippets Groups Projects
Commit 2471c12c authored by Zainab Amir's avatar Zainab Amir
Browse files

Get current site by ID

Getting current site by NAME was failing on stage.

LEARNER-5408
parent 3955dab5
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment