| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-03-17 | Refs #470 -- Fixed further field_defaults test failures due to year-end ↵ | Jacob Walls | |
| boundary conditions. Follow-up to 352d860b9107adbcde0f1fe5d0fce8e9090a51e4. Overriding USE_TZ=True during a test creates drift between the SQL compiled for inserted values versus the deployed database default, as Extract() inquires of the current timezone. To resolve this, leave USE_TZ=False and make UTC explicit when asserting the result. | |||
| 2025-09-14 | Fixed #27222 -- Refreshed model field values assigned expressions on save(). | Simon Charette | |
| Removed the can_return_columns_from_insert skip gates on existing field_defaults tests to confirm the expected number of queries are performed and that returning field overrides are respected. | |||
| 2025-04-06 | Added supports_expression_defaults check in DefaultTests.test_full_clean() test. | Mariusz Felisiak | |
| 2025-01-23 | Refs #470 -- Fixed field_defaults test failures due to year-end boundary ↵ | Jacob Walls | |
| conditions. | |||
| 2024-03-08 | Fixed #35223 -- Made Model.full_clean() ignore fields with db_default when ↵ | Ben Cail | |
| validating empty values. Thanks Brian Ibbotson for the report. Regression in 7414704e88d73dafbcfbb85f9bc54cb6111439d3. | |||
| 2023-11-02 | Fixed #34936 -- Fixed migration crash for DecimalField with db_default on ↵ | David Sanders | |
| SQLite. CAST() must be wrapped in parentheses to be recognized as an expression on SQLite. Regression in 7414704e88d73dafbcfbb85f9bc54cb6111439d3. | |||
| 2023-05-12 | Fixed #470 -- Added support for database defaults on fields. | Ian Foote | |
| Special thanks to Hannes Ljungberg for finding multiple implementation gaps. Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for reviews. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2017-01-18 | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2014-11-03 | Fixed #23620 -- Used more specific assertions in the Django test suite. | Berker Peksag | |
| 2014-09-24 | Removed numbering from the models.py header of some test packages. | Loic Bistuer | |
| This is a reliqua from the early days of the modeltests/regressiontests era. | |||
| 2013-07-29 | Removed most of absolute_import imports | Claude Paroz | |
| Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way. | |||
| 2013-05-21 | Use assertIsInstance in tests. | Marc Tamlyn | |
| Gives much nicer errors when it fails. | |||
| 2013-02-26 | Merged regressiontests and modeltests into the test root. | Florian Apolloner | |
