Skip to content

Commit a359155

Browse files
committed
successstories: rely on www in Site object for admin_url
1 parent 1e83efa commit a359155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

successstories/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def send_email_to_psf(sender, instance, created, **kwargs):
153153
author_email=instance.author_email,
154154
pull_quote=instance.pull_quote,
155155
content=instance.content.raw,
156-
admin_url='https://www.{}{}'.format(
156+
admin_url='https://{}{}'.format(
157157
Site.objects.get_current(), instance.get_admin_url()
158158
),
159159
).strip(),

0 commit comments

Comments
 (0)