| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-10-08 | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | |
| assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | |||
| 2022-08-27 | Fixed #33952 -- Reallowed creating reverse foreign key managers on unsaved ↵ | David Wobrock | |
| instances. Thanks Claude Paroz for the report. Regression in 7ba6ebe9149ae38257d70100e8bfbfd0da189862. | |||
| 2022-05-31 | Fixed #33191 -- Avoided clearing cached reference when saving child after ↵ | Allen Jonathan David | |
| parent. Thanks Barry Johnson for the report. | |||
| 2022-02-22 | Fixed #19580 -- Unified behavior of reverse foreign key and many-to-many ↵ | Albert Defler | |
| relations for unsaved instances. | |||
| 2022-02-07 | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-02-04 | Fixed #32332 -- Fixed loss of parent with non-numeric pk when saving child ↵ | Hasan Ramezani | |
| after parent. Follow up to 519016e5f25d7c0a040015724f9920581551cab0. | |||
| 2020-11-13 | Changed docs and a code comment to use gender-neutral pronouns. | Nick Pope | |
| Follow up to e1b77238171cc96f4451a06fb4682e2378896238. | |||
| 2020-11-06 | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | |
| This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-05-15 | Refs #31395 -- Relied on setUpTestData() test data isolation in various tests. | Simon Charette | |
| 2020-04-30 | Removed unused __str__() methods in tests models. | Mariusz Felisiak | |
| Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1. | |||
| 2020-02-18 | Refs #31282 -- Clarified M2O add/remove/set with PK behaviour. | Carlton Gibson | |
| Improved error message for remove() and added tests. | |||
| 2020-02-04 | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | |
| 2019-08-02 | Fixed #30661 -- Added models.SmallAutoField. | Nick Pope | |
| 2019-07-27 | Refs #28147 -- Fixed setting of OneToOne and Foreign Key fields to None when ↵ | Jon Dufresne | |
| using attnames. Regression in 519016e5f25d7c0a040015724f9920581551cab0. | |||
| 2019-07-27 | Added tests for using attnames to assign OneToOne and Foreign Key fields. | Jon Dufresne | |
| 2019-05-21 | Fixed #28147 -- Fixed loss of assigned parent when saving child after parent. | Rob | |
| Thanks Erwin Junge for the initial patch. | |||
| 2019-05-21 | Refs #28147 -- Added test for saving nullable ForeignKey with to_field ↵ | Rob | |
| attribute after saving parent. | |||
| 2018-12-27 | Followed style guide for model attribute ordering. | Matt Wiens | |
| 2018-11-08 | Fixed #29908 -- Fixed setting of foreign key after related set access if ↵ | Simon Charette | |
| ForeignKey uses to_field. Adjusted known related objects handling of target fields which relies on from and to_fields and has the side effect of fixing a bug bug causing N+1 queries when using reverse foreign objects. Thanks Carsten Fuchs for the report. | |||
| 2018-10-28 | Fixed #29896 -- Fixed incorrect Model.save() cache relation clearing for ↵ | Tim Graham | |
| foreign keys that use to_field. Regression in ee49306176a2d2f1751cb890bd607d42c7c09196. | |||
| 2018-09-25 | Normalized spelling of "lowercase" and "lowercased". | Jon Dufresne | |
| 2017-11-09 | Fixed #27710 -- Made Model.save() invalidate cached, stale relations after a ↵ | Paulo | |
| primary key assignment. | |||
| 2017-11-06 | Fixed #28776 -- Fixed a/an/and typos in docs and comments. | Дилян Палаузов | |
| 2017-08-10 | Refs #16043 -- Refactored internal fields value cache. | Paulo | |
| * Removed all hardcoded logic for _{fieldname}_cache. * Added an internal API for interacting with the field values cache. Thanks carljm and MarkusH for support. | |||
| 2017-07-29 | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | |
| 2017-04-10 | Changed assertQuerysetEqual()s that use default Model.__str__() to ↵ | Collin Anderson | |
| assertSequenceEqual(). | |||
| 2017-02-07 | Converted usage of ugettext* functions to their gettext* aliases | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-26 | Refs #23919, #27778 -- Removed obsolete mentions of unicode. | Vytis Banaitis | |
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 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 | |
| 2017-01-17 | Removed Manager.use_for_related_fields and Meta.manager_inheritance_from_future. | Tim Graham | |
| Per deprecation timeline. Refs ed0ff913c648b16c4471fc9a9441d1ee48cb5420. | |||
| 2017-01-17 | Refs #25550 -- Removed support for direct assignment to the reverse side of ↵ | Tim Graham | |
| a related set. | |||
| 2016-12-07 | Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase. | Tim Graham | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-08-05 | Fixed #26706 -- Made RelatedManager modification methods clear ↵ | Yoong Kang Lim | |
| prefetch_related() cache. | |||
| 2016-05-17 | Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify ↵ | Loïc Bistuer | |
| models' default and base managers. This deprecates use_for_related_fields. Old API: class CustomManager(models.Model): use_for_related_fields = True class Model(models.Model): custom_manager = CustomManager() New API: class Model(models.Model): custom_manager = CustomManager() class Meta: base_manager_name = 'custom_manager' Refs #20932, #25897. Thanks Carl Meyer for the guidance throughout this work. Thanks Tim Graham for writing the docs. | |||
| 2016-05-17 | Fixed #20932, #25897 -- Streamlined manager inheritance. | Loïc Bistuer | |
| 2016-02-11 | Fixed #26179 -- Removed null assignment check for non-nullable foreign key ↵ | ZachLiuGIS | |
| fields. | |||
| 2016-02-05 | Fixed #26176 -- Fixed E123 flake8 warnings. | Tim Graham | |
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaisesMessage in tests. | Hasan | |
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2015-12-25 | Fixed #14286 -- Added models.BigAutoField. | Alexander Sosnovskiy | |
| 2015-10-27 | Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵ | Tim Graham | |
| related set. | |||
| 2015-09-12 | Fixed #23395 -- Limited line lengths to 119 characters. | Dražen Odobašić | |
| 2015-08-10 | Fixed #25160 -- Moved unsaved model instance data loss check to Model.save() | Tim Graham | |
| This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review. | |||
| 2015-07-28 | Fixed #18556 -- Allowed RelatedManager.add() to execute 1 query where possible. | Tim Graham | |
| Thanks Loic Bistuer for review. | |||
| 2015-07-27 | Fixed #21127 -- Started deprecation toward requiring on_delete for ↵ | Flavio Curella | |
| ForeignKey/OneToOneField | |||
| 2015-03-25 | Renamed Field.rel attribute to remote_field | Anssi Kääriäinen | |
| Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True. | |||
