mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
Second attempt at fixing tests using context processors
This commit is contained in:
parent
4cdbdd8d0b
commit
55f1ce12cf
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ def site_settings(request): # pylint: disable=unused-argument
|
|||
|
||||
site = models.SiteSettings.objects.get()
|
||||
theme = "css/themes/bookwyrm-light.scss"
|
||||
if request.user and request.user.is_authenticated and request.user.theme:
|
||||
if hasattr(request, "user") and request.user.is_authenticated and request.user.theme:
|
||||
theme = request.user.theme.path
|
||||
elif site.default_theme:
|
||||
theme = site.default_theme.path
|
||||
|
|
Loading…
Reference in a new issue