forked from CGM_Public/pretix_original
Add GlobalSetting model
This commit is contained in:
committed by
Raphael Michel
parent
8c4023f065
commit
02fd0a8e06
@@ -17,6 +17,7 @@ from pretix.base.settings import SettingsProxy
|
||||
|
||||
from .auth import User
|
||||
from .organizer import Organizer
|
||||
from .settings import EventSetting
|
||||
|
||||
|
||||
class Event(LoggedModel):
|
||||
@@ -263,16 +264,6 @@ class EventPermission(models.Model):
|
||||
}
|
||||
|
||||
|
||||
class EventSetting(models.Model):
|
||||
"""
|
||||
An event settings is a key-value setting which can be set for a
|
||||
specific event
|
||||
"""
|
||||
object = models.ForeignKey(Event, related_name='setting_objects', on_delete=models.CASCADE)
|
||||
key = models.CharField(max_length=255)
|
||||
value = models.TextField()
|
||||
|
||||
|
||||
class EventLock(models.Model):
|
||||
event = models.CharField(max_length=36, primary_key=True)
|
||||
date = models.DateTimeField(auto_now=True)
|
||||
|
||||
Reference in New Issue
Block a user