Fixed #24997 -- Enabled bulk_create() on proxy models

This commit is contained in:
William Schwartz 2015-06-18 10:12:07 -04:00 committed by Tim Graham
parent fedef7b2c6
commit 9a5cfa05a0
6 changed files with 68 additions and 18 deletions

View file

@ -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.