diff options
| author | Natalia <124304+nessita@users.noreply.github.com> | 2025-08-21 09:43:25 -0300 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-08-21 12:25:57 -0300 |
| commit | d6a8e5f5e1129d78e6ad40c66c6282ab55be8b61 (patch) | |
| tree | 05e9ec43efc5725e0129308c624f33629a8f1ed3 /docs/internals/contributing/writing-code/javascript.txt | |
| parent | aae7836cc021b05f9674d15a06ca383e1db5af78 (diff) | |
Fixed failing bulk_create test raising IntegrityError when run in reverse.
When running the `bulk_create` tests with Postgres settings and
`--reverse`, the following IntegrityError was raised in
bulk_create.tests.BulkCreateTransactionTests.test_objs_with_and_without_pk:
django.db.utils.IntegrityError: duplicate key value violates unique
constraint "bulk_create_country_pkey"
DETAIL: Key (id)=(1) already exists.
This branch fixes this by ensuring the ID is unique since DB sequences
are not resetted between tests.
Diffstat (limited to 'docs/internals/contributing/writing-code/javascript.txt')
0 files changed, 0 insertions, 0 deletions
