diff --git a/notifications/templatetags/notifications_tags.py b/notifications/templatetags/notifications_tags.py index c5a3f9d..d74f4ad 100644 --- a/notifications/templatetags/notifications_tags.py +++ b/notifications/templatetags/notifications_tags.py @@ -82,9 +82,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'"