From f1b41461db0a373320dc4f82ef08a32e3f78b30c Mon Sep 17 00:00:00 2001 From: Mikhail Epifanov Date: Thu, 11 Jan 2024 22:46:29 +0100 Subject: [PATCH] bugfix for not working space loading --- cookbook/templatetags/theming_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/templatetags/theming_tags.py b/cookbook/templatetags/theming_tags.py index f35096fd..68695082 100644 --- a/cookbook/templatetags/theming_tags.py +++ b/cookbook/templatetags/theming_tags.py @@ -11,7 +11,7 @@ register = template.Library() @register.simple_tag def theme_values(request): space = None - if request.space: + if space in request and request.space: space = request.space if not request.user.is_authenticated and UNAUTHENTICATED_THEME_FROM_SPACE > 0: with scopes_disabled():