You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
323 B

from .registries import global_preferences_registry as gpr
def global_preferences(request):
"""
Pass the values of global preferences to template context.
You can then access value with `global_preferences.<section>.<name>`
"""
manager = gpr.manager()
return {"global_preferences": manager.all()}