#33799 closed Bug (fixed)
abulk_create() doesn't accept upsert parameters (update_conflicts, update_fields, unique_fields)
Description ¶
abulk_create doesn't accept newly added upsert parameters even though the (preview) docs say it does.
File /usr/local/lib/python3.8/site-packages/django/db/models/manager.py:85, in BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_method(self, *args, **kwargs) 84 def manager_method(self, *args, **kwargs): ---> 85 return getattr(self.get_queryset(), name)(*args, **kwargs) TypeError: abulk_create() got an unexpected keyword argument 'update_conflicts'
Change History (6)
comment:1 by , 3 years ago
Has patch: | set |
---|
follow-up: 4 comment:2 by , 3 years ago
Severity: | Normal → Release blocker |
---|---|
Summary: | abulk_create doesn't accept upsert parameters (update_conflicts, update_fields, unique_fields) → abulk_create() doesn't accept upsert parameters (update_conflicts, update_fields, unique_fields) |
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Bug |
comment:3 by , 3 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:4 by , 3 years ago
Replying to Mariusz Felisiak:
Thanks for the report.
No worries!
I've raised a PR for the same: https://github.com/django/django/pull/15788
Let me know if any changes are required.
Note:
See TracTickets
for help on using tickets.
Thanks for the report.