mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Add a view for GlobalSettings
This commit is contained in:
committed by
Raphael Michel
parent
02fd0a8e06
commit
c647aa9f4e
@@ -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]
|
||||
|
||||
@@ -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).
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user