summaryrefslogtreecommitdiff
path: root/django/db/models/sql/compiler.py
diff options
context:
space:
mode:
authorNatalia <124304+nessita@users.noreply.github.com>2025-10-24 09:50:01 -0300
committernessita <124304+nessita@users.noreply.github.com>2025-10-24 11:33:40 -0300
commit6fcbbe0b855d8701a4da1b65772ccf326f996b9e (patch)
tree6409768621d93e4aa89e9d65611bbdc6a9ec93cf /django/db/models/sql/compiler.py
parent74239181252ca73bebb84789856f5d8937d421b4 (diff)
Fixed IntegrityError in bulk_create.tests.BulkCreateTransactionTests due to duplicate primary keys.
Some tests in BulkCreateTransactionTests were inserting Country objects with hardcoded primary keys, which could conflict with existing rows (if the sequence value wasn't bumped by another test). Updated the tests to dynamically select an unused primary key instead. Thanks to Simon Charette for the exhaustive and enlightening review.
Diffstat (limited to 'django/db/models/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions