From 22fbaf26aa5693985a4cb3295f503f9cf70b8d04 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 4727ec2..b589f71 100644 --- a/notifications/templatetags/notifications_tags.py +++ b/notifications/templatetags/notifications_tags.py @@ -71,7 +71,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 = '