Add a view for GlobalSettings

This commit is contained in:
Tobias Kunze
2016-10-27 08:18:59 +02:00
committed by Raphael Michel
parent 02fd0a8e06
commit c647aa9f4e
8 changed files with 127 additions and 5 deletions

View File

@@ -305,7 +305,7 @@ Your {event} team"""))
class SettingsProxy:
"""
This objects allows convenient access to settings stored in the
This object allows convenient access to settings stored in the
EventSettings/OrganizerSettings database model. It exposes all settings as
properties and it will do all the nasty inheritance and defaults stuff for
you.
@@ -442,7 +442,7 @@ class SettingsProxy:
def set(self, key: str, value: Any) -> None:
"""
Stores a setting to the database of this object.
Stores a setting to the database of its object.
"""
if key in self._cache():
s = self._cache()[key]

View File

@@ -122,3 +122,9 @@ be everything between a minute and a day. The actions you perform should be
idempotent, i.e. it should not make a difference if this is sent out more often
than expected.
"""
register_global_settings = django.dispatch.Signal()
"""
All plugins that are installed may send fields for the global settings form, as
an OrderedDict of (setting name, form field).
"""