mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 05:39:00 -05:00
Merge pull request #2753 from smilerz/patch_custom_icon
Patch custom icon
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user