| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-01-10 | Refs #36064 -- Added test that falsey primary key default/db_default value ↵ | Bendeguz Csirmaz | |
| skips an update query on save. This adds test coverage for logic change in 9fa4d07ce0729850661a31a6b37c6b48f13d2266. | |||
| 2024-01-26 | Applied Black's 2024 stable style. | Mariusz Felisiak | |
| https://github.com/psf/black/releases/tag/24.1.0 | |||
| 2023-11-24 | Fixed #34925 -- Prevented Model.refresh_from_db() from mutating list of fields. | trontelj | |
| 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 | |
| 2020-03-05 | Fixed #29129 -- Skipped UPDATE when adding a model instance with inherited ↵ | Abhijeet Viswa | |
| primary key that has a default. | |||
| 2019-08-19 | Fixed #29260 -- Skipped an UPDATE when adding a model instance with primary ↵ | Hasan Ramezani | |
| key that has a default. | |||
| 2017-10-12 | Fixed #27846 -- Made Model.refresh_from_db() clear cached relations. | Paulo | |
| 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 | |
| 2015-11-21 | Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey ↵ | Tim Graham | |
| w/on_delete=SET_NULL. | |||
| 2015-07-27 | Fixed #21127 -- Started deprecation toward requiring on_delete for ↵ | Flavio Curella | |
| ForeignKey/OneToOneField | |||
| 2014-11-20 | Added a comment for test of refs #20278. | Anssi Kääriäinen | |
| 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. | |||
| 2014-05-15 | Harmonized some PEP 0263 coding preambles | Claude Paroz | |
| 2013-11-02 | PEP8 cleanup | Jason Myers | |
| Signed-off-by: Jason Myers <jason@jasonamyers.com> | |||
| 2013-10-26 | Fix all violators of E231 | Alex Gaynor | |
| 2013-08-30 | Fixed #20988 -- Added model meta option select_on_save | Anssi Kääriäinen | |
| The option can be used to force pre 1.6 style SELECT on save behaviour. This is needed in case the database returns zero updated rows even if there is a matching row in the DB. One such case is PostgreSQL update trigger that returns NULL. Reviewed by Tim Graham. Refs #16649 | |||
| 2013-05-20 | Fixed #20278 -- ensured .get() exceptions do not recurse infinitely | Anssi Kääriäinen | |
| A regression caused by d5b93d3281fe93cbef5de84a52 made .get() error reporting recurse infinitely on certain rare conditions. Fixed this by not trying to print the given lookup kwargs. | |||
| 2013-02-26 | Merged regressiontests and modeltests into the test root. | Florian Apolloner | |
