mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-02 20:32:20 +00:00
10 lines
360 B
Python
10 lines
360 B
Python
""" customize the info available in context for rendering templates """
|
|
from bookwyrm import models
|
|
|
|
|
|
def site_settings(request): # pylint: disable=unused-argument
|
|
"""include the custom info about the site"""
|
|
return {
|
|
"site": models.SiteSettings.objects.get(),
|
|
"active_announcements": models.Announcement.active_announcements(),
|
|
}
|