summaryrefslogtreecommitdiff
path: root/tests/bulk_create/models.py
AgeCommit message (Collapse)Author
2025-04-05Refs #36088, Refs #36260 - Added supports_expression_defaults checks in ↵Tim Graham
bulk_create() tests.
2025-03-26Fixed #36260 -- Made bulk_create() work with DB-generated primary keys.Dmitry Shachnev
Co-authored-by: Simon Charette <charette.s@gmail.com>
2025-02-01Fixed #36088 -- Avoided unnecessary DEFAULT usage on bulk_create().Simon Charette
When all values of a field with a db_default are DatabaseDefault, which is the case most of the time, there is no point in specifying explicit DEFAULT for all INSERT VALUES as that's what the database will do anyway if not specified. In the case of PostgreSQL doing so can even be harmful as it prevents the usage of the UNNEST strategy and in the case of Oracle, which doesn't support the usage of the DEFAULT keyword, it unnecessarily requires providing literal db defaults. Thanks Lily Foote for the review.
2022-11-22Fixed #34171 -- Fixed QuerySet.bulk_create() on fields with db_column in ↵DevilsAutumn
unique_fields/update_fields. Bug in 0f6946495a8ec955b471ca1baaf408ceb53d4796. Thanks Joshua Brooks for the report.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-01-19Fixed #31685 -- Added support for updating conflicts to QuerySet.bulk_create().sean_c_hsu
Thanks Florian Apolloner, Chris Jerdonek, Hannes Ljungberg, Nick Pope, and Mariusz Felisiak for reviews.
2021-01-14Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.Mariusz Felisiak
2020-02-28Fixed #31301 -- Fixed crash of QuerySet.bulk_create() with mixed empty and ↵Hans Aarne Liblik
set ForeignKeys to AutoFields on Oracle.
2019-11-19Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2017-02-24Refs #22144 -- Added test for QuerySet.bulk_create() with long non-ASCII text.Mariusz Felisiak
2017-02-13Refs #22669 -- Fixed bulk_create test if Pillow isn't installed.Vytis Banaitis
2017-02-09Fixed #22669 -- Fixed QuerySet.bulk_create() with empty model fields on Oracle.Mikhail Nacharov
2015-10-09Fixed #22705 -- Fixed QuerySet.bulk_create() on models without any fields on ↵Tim Graham
Oracle. Fixed on other backends by 134ca4d438bd7cbe8f0f287a00d545f96fa04a01. Thanks Mariusz Felisiak for the solution.
2015-07-02Fixed #24997 -- Enabled bulk_create() on proxy modelsWilliam Schwartz
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner