django/tests/queries
Clifford Gama c1fa3fdd04
Some checks failed
Docs / docs (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
Fixed #36419 -- Ensured for_save was propagated when resolving expressions.
The for_save flag wasn't properly propagated when resolving expressions, which
prevented get_db_prep_save() from being called in some cases. This affected
fields like JSONField where None would be saved as JSON null instead of SQL NULL.

Regression in 00c690efbc.

Thanks to David Sanders and Simon Charette for reviews.

Co-authored-by: Adam Johnson <me@adamj.eu>
2025-06-06 17:40:35 +02:00
..
__init__.py
models.py Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
test_bulk_update.py Fixed #36419 -- Ensured for_save was propagated when resolving expressions. 2025-06-06 17:40:35 +02:00
test_contains.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_db_returning.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_explain.py Fixed #35856 -- Added QuerySet.explain() support for MEMORY/SERIALIZE option on PostgreSQL 17+. 2024-10-30 15:54:48 +01:00
test_iterator.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_q.py Fixed #35712 -- Prevented Q.check() from leaving the connection in an unusable state. 2024-09-02 17:00:55 +02:00
test_qs_combinators.py Fixed #36388 -- Made QuerySet.union() return self when called with no arguments. 2025-05-19 10:34:14 +02:00
test_query.py Refs #33308 -- Avoided passing None to RawSQL's params. 2022-12-02 10:56:09 +01:00
test_sqlcompiler.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
tests.py Fixed #36288 -- Addressed improper handling of duplicates in values_list(). 2025-04-11 09:04:49 +02:00