Actions
Issue #4306
closedThe BulkCreateManager.bulk_get_or_create() breaks ourter transactions.
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 47
Quarter:
Description
Both bulk_create() and save() need to be called within a nested transaction so that it can be safely used in an outer transaction. Even though an IntegrityError is caught, it will still cause the transaction to be in an ERROR state and can no longer be used.
Actions
Fix BulkCreateManager.bulk_get_or_create() closes #4306