forked from 0x2620/pandora
use transaction.atomic
This commit is contained in:
parent
e738503380
commit
e22cc432b3
13 changed files with 19 additions and 19 deletions
|
|
@ -84,7 +84,7 @@ class Event(models.Model):
|
|||
def get_super_matches(self):
|
||||
return get_super_matches(self, Event)
|
||||
|
||||
@transaction.commit_on_success
|
||||
@transaction.atomic
|
||||
def update_matches(self, annotations=None):
|
||||
matches = self.get_matches(annotations)
|
||||
if not annotations:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue