bookwyrm-mastodon/bookwyrm/context_processors.py

9 lines
251 B
Python
Raw Normal View History

2020-12-11 15:31:02 -05:00
''' customize the info available in context for rendering templates '''
from bookwyrm import models
def site_settings(request):
''' include the custom info about the site '''
return {
2020-12-12 16:39:55 -05:00
'site': models.SiteSettings.objects.first()
2020-12-11 15:31:02 -05:00
}