use transaction.atomic
This commit is contained in:
parent
e738503380
commit
e22cc432b3
13 changed files with 19 additions and 19 deletions
|
|
@ -196,7 +196,7 @@ class Entity(models.Model):
|
|||
entity = get_by_id(settings.CONFIG['entities'], self.type)
|
||||
if not entity:
|
||||
return
|
||||
with transaction.commit_on_success():
|
||||
with transaction.atomic():
|
||||
ids = ['name']
|
||||
for key in entity['keys']:
|
||||
value = self.data.get(key['id'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue