mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Use @transaction.atomic instead of @transaction.atomic()
This commit is contained in:
@@ -80,7 +80,7 @@ def lock_event_db(event):
|
||||
raise EventLock.LockTimeoutException()
|
||||
|
||||
|
||||
@transaction.atomic()
|
||||
@transaction.atomic
|
||||
def release_event_db(event):
|
||||
if not hasattr(event, '_lock') or not event._lock:
|
||||
raise EventLock.LockReleaseException('Lock is not owned by this thread')
|
||||
|
||||
Reference in New Issue
Block a user