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'"