Include global settings in event/organizer settings

Also, add tests
This commit is contained in:
Tobias Kunze
2016-10-27 10:48:54 +02:00
committed by Raphael Michel
parent c647aa9f4e
commit c5fdf7c215
8 changed files with 62 additions and 17 deletions

View File

@@ -58,7 +58,8 @@ class Organizer(LoggedModel):
"""
Returns an object representing this organizer's settings
"""
return SettingsProxy(self, type=OrganizerSetting)
from pretix.base.settings import GlobalSettingsObject
return SettingsProxy(self, type=OrganizerSetting, parent=GlobalSettingsObject())
def get_cache(self) -> "pretix.base.cache.ObjectRelatedCache":
"""