fix: Add splash_image to context if exists

This commit is contained in:
Gavin D'souza 2022-05-30 18:56:17 +05:30
parent f416e2a1d2
commit 9bc85402f6

View file

@ -203,7 +203,8 @@ def get_website_settings(context=None):
context["hide_login"] = settings.hide_login
context["splash_image"] = settings.splash_image or context["splash_image"]
if splash_image := settings.splash_image or context.get("splash_image"):
context["splash_image"] = splash_image
return context