use transaction.atomic
This commit is contained in:
parent
e738503380
commit
e22cc432b3
13 changed files with 19 additions and 19 deletions
|
|
@ -17,7 +17,7 @@ class Command(BaseCommand):
|
|||
def handle(self, id, height, position, **options):
|
||||
position = float(position)
|
||||
height = int(height)
|
||||
with transaction.commit_on_success():
|
||||
with transaction.atomic():
|
||||
i = models.Item.objects.get(public_id=id)
|
||||
path = i.frame(position, height)
|
||||
if path:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue