2021-03-08 08:49:10 -08:00
|
|
|
""" customize the info available in context for rendering templates """
|
2020-12-11 12:31:02 -08:00
|
|
|
from bookwyrm import models
|
|
|
|
|
2021-03-08 08:49:10 -08:00
|
|
|
|
|
|
|
def site_settings(request): # pylint: disable=unused-argument
|
2021-04-26 09:15:42 -07:00
|
|
|
"""include the custom info about the site"""
|
2021-05-19 13:56:00 -07:00
|
|
|
return {
|
|
|
|
"site": models.SiteSettings.objects.get(),
|
2021-05-19 15:17:32 -07:00
|
|
|
"active_announcements": models.Announcement.active_announcements(),
|
2021-05-19 13:56:00 -07:00
|
|
|
}
|