[Django] #33799: abulk_create doesn't accept upsert parameters (update_conflicts, update_fields, unique_fields)

207 views
Skip to first unread message

Django

unread,
Jun 23, 2022, 2:53:04 AM6/23/22
to django-...@googlegroups.com
#33799: abulk_create doesn't accept upsert parameters (update_conflicts,
update_fields, unique_fields)
-------------------------------------+-------------------------------------
Reporter: Dhruva | Owner: Dhruva Patil
Patil |
Type: | Status: assigned
Uncategorized |
Component: Database | Version: 4.1
layer (models, ORM) |
Severity: Normal | Keywords: async orm
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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'
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33799>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 23, 2022, 3:08:08 AM6/23/22
to django-...@googlegroups.com
#33799: abulk_create doesn't accept upsert parameters (update_conflicts,
update_fields, unique_fields)
-------------------------------------+-------------------------------------
Reporter: Dhruva Patil | Owner: Dhruva
| Patil
Type: Uncategorized | Status: assigned
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Normal | Resolution:

Keywords: async orm | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Dhruva Patil):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/33799#comment:1>

Reply all
Reply to author
Forward
0 new messages