From e30247ac36d3da7771cb2b98a7581f1b76deaf41 Mon Sep 17 00:00:00 2001 From: Andrew Hall Date: Fri, 15 Jan 2021 14:59:52 +1100 Subject: [PATCH] use older format string for backward compatibility --- notifications/templatetags/notifications_tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifications/templatetags/notifications_tags.py b/notifications/templatetags/notifications_tags.py index bdbfa89..4727ec2 100644 --- a/notifications/templatetags/notifications_tags.py +++ b/notifications/templatetags/notifications_tags.py @@ -71,9 +71,9 @@ def register_notify_callbacks(badge_class='live_notify_badge', # pylint: disabl ) # add a nonce value to the script tag if one is provided - nonce_str = f' nonce="{nonce}"' if nonce is not None else "" + nonce_str = ' nonce="{nonce}"'.format(nonce=nonce) if nonce is not None else "" - script = f'"