From 0e01713b6948407b0906e73cde6a672a97806877 Mon Sep 17 00:00:00 2001 From: Alvaro Leonel Date: Tue, 9 May 2023 19:11:54 -0300 Subject: [PATCH] Fix nonce attribute string compilation --- notifications/templatetags/notifications_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications/templatetags/notifications_tags.py b/notifications/templatetags/notifications_tags.py index d74f4ad..2a457f7 100644 --- a/notifications/templatetags/notifications_tags.py +++ b/notifications/templatetags/notifications_tags.py @@ -82,7 +82,7 @@ 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 = ' nonce="{nonce}"'.format(nonce=nonce) if nonce is not None else "" + nonce_str = ' nonce="{nonce}"'.format(nonce=nonce) if nonce else "" script = '