mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #24997 -- Enabled bulk_create() on proxy models
This commit is contained in:
parent
fedef7b2c6
commit
9a5cfa05a0
6 changed files with 68 additions and 18 deletions
|
@ -1768,6 +1768,10 @@ This has a number of caveats though:
|
|||
does not retrieve and set the primary key attribute, as ``save()`` does.
|
||||
* It does not work with many-to-many relationships.
|
||||
|
||||
.. versionchanged:: 1.9
|
||||
|
||||
Support for using ``bulk_create()`` with proxy models was added.
|
||||
|
||||
The ``batch_size`` parameter controls how many objects are created in single
|
||||
query. The default is to create all objects in one batch, except for SQLite
|
||||
where the default is such that at most 999 variables per query are used.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue