diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-27 09:58:42 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-12-27 09:59:07 -0500 |
| commit | e2d02c1fc99d8d85ec2a13a745cb786a15a5c6b2 (patch) | |
| tree | 6c2bfa39d2a641b09622ec412492e9689e599767 /docs/ref | |
| parent | 4a51ba228b2c416a115aee3bc034683eb02482c3 (diff) | |
Used a nontemporal example in QuerySet.bulk_create() in docs.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/querysets.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 9f2af1359f..3090251659 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -1881,9 +1881,8 @@ efficient manner (generally only 1 query, no matter how many objects there are):: >>> Entry.objects.bulk_create([ - ... Entry(headline="Django 1.0 Released"), - ... Entry(headline="Django 1.1 Announced"), - ... Entry(headline="Breaking: Django is awesome") + ... Entry(headline='This is a test'), + ... Entry(headline='This is only a test'), ... ]) This has a number of caveats though: |
