summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/db/models/query.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py
index a169d0c235..be0deb90b0 100644
--- a/django/db/models/query.py
+++ b/django/db/models/query.py
@@ -834,11 +834,22 @@ class QuerySet:
return objs
- async def abulk_create(self, objs, batch_size=None, ignore_conflicts=False):
+ async def abulk_create(
+ self,
+ objs,
+ batch_size=None,
+ ignore_conflicts=False,
+ update_conflicts=False,
+ update_fields=None,
+ unique_fields=None,
+ ):
return await sync_to_async(self.bulk_create)(
objs=objs,
batch_size=batch_size,
ignore_conflicts=ignore_conflicts,
+ update_conflicts=update_conflicts,
+ update_fields=update_fields,
+ unique_fields=unique_fields,
)
def bulk_update(self, objs, fields, batch_size=None):