mirror of
https://github.com/pretix/pretix.git
synced 2026-08-23 12:51:59 +00:00
New locking mechanism (#2408)
Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
co-authored by
Richard Schreiber
parent
b2b3fa36be
commit
c842ea597c
@@ -743,12 +743,7 @@ class Event(EventMixin, LoggedModel):
|
||||
return ObjectRelatedCache(self)
|
||||
|
||||
def lock(self):
|
||||
"""
|
||||
Returns a contextmanager that can be used to lock an event for bookings.
|
||||
"""
|
||||
from pretix.base.services import locking
|
||||
|
||||
return locking.LockManager(self)
|
||||
raise NotImplementedError("this method has been removed")
|
||||
|
||||
def get_mail_backend(self, timeout=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user