use transaction.atomic

This commit is contained in:
j 2016-02-19 21:55:09 +05:30
commit e22cc432b3
13 changed files with 19 additions and 19 deletions

View file

@ -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: