Skip to content

Commit

Permalink
successstories: rely on www in Site object for admin_url
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Dec 9, 2020
1 parent 1e83efa commit a359155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion successstories/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def send_email_to_psf(sender, instance, created, **kwargs):
author_email=instance.author_email,
pull_quote=instance.pull_quote,
content=instance.content.raw,
admin_url='https://www.{}{}'.format(
admin_url='https://{}{}'.format(
Site.objects.get_current(), instance.get_admin_url()
),
).strip(),
Expand Down

0 comments on commit a359155

Please sign in to comment.