summaryrefslogtreecommitdiff
path: root/tests/many_to_one/models.py
AgeCommit message (Collapse)Author
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-02-04Fixed #32332 -- Fixed loss of parent with non-numeric pk when saving child ↵Hasan Ramezani
after parent. Follow up to 519016e5f25d7c0a040015724f9920581551cab0.
2020-04-30Removed unused __str__() methods in tests models.Mariusz Felisiak
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
2019-08-02Fixed #30661 -- Added models.SmallAutoField.Nick Pope
2019-05-21Fixed #28147 -- Fixed loss of assigned parent when saving child after parent.Rob
Thanks Erwin Junge for the initial patch.
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-11-08Fixed #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-09-25Normalized spelling of "lowercase" and "lowercased".Jon Dufresne
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-08-05Fixed #26706 -- Made RelatedManager modification methods clear ↵Yoong Kang Lim
prefetch_related() cache.
2015-12-25Fixed #14286 -- Added models.BigAutoField.Alexander Sosnovskiy
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2014-09-24Removed 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-09-24Consolidated some many_to_one tests.Loic Bistuer
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner