Skip to content

Commit

Permalink
[1.6.x] Fixed #18285 -- Documented that bulk_create doesn't work with…
Browse files Browse the repository at this point in the history
… M2M relationships.

Backport of 9173d2c from master
  • Loading branch information
timgraham committed Jan 17, 2014
1 parent 363b8c6 commit b1cc163
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/ref/models/querysets.txt
Expand Up @@ -1523,6 +1523,7 @@ This has a number of caveats though:
* It does not work with child models in a multi-table inheritance scenario. * It does not work with child models in a multi-table inheritance scenario.
* If the model's primary key is an :class:`~django.db.models.AutoField` it * If the model's primary key is an :class:`~django.db.models.AutoField` it
does not retrieve and set the primary key attribute, as ``save()`` does. does not retrieve and set the primary key attribute, as ``save()`` does.
* It does not work with many-to-many relationships.


The ``batch_size`` parameter controls how many objects are created in single 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 query. The default is to create all objects in one batch, except for SQLite
Expand Down

0 comments on commit b1cc163

Please sign in to comment.