bookwyrm/bookwyrm/context_processors.py

9 lines
282 B
Python
Raw Normal View History

2020-12-11 20:31:02 +00:00
''' customize the info available in context for rendering templates '''
from bookwyrm import models
2020-12-13 02:13:00 +00:00
def site_settings(request):# pylint: disable=unused-argument
2020-12-11 20:31:02 +00:00
''' include the custom info about the site '''
return {
'site': models.SiteSettings.objects.get()
}