Skip to content

Commit

Permalink
Merge pull request #2753 from smilerz/patch_custom_icon
Browse files Browse the repository at this point in the history
Patch custom icon
  • Loading branch information
vabene1111 authored Nov 28, 2023
2 parents ad036d7 + add600f commit ad1e64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/templatetags/theming_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def theme_url(request):

@register.simple_tag
def logo_url(request):
if request.user.is_authenticated and request.space.image:
if request.user.is_authenticated and getattr(getattr(request, "space", {}), 'image', None):
return request.space.image.file.url
else:
return static('assets/brand_logo.png')
Expand Down

0 comments on commit ad1e64f

Please sign in to comment.