summaryrefslogtreecommitdiff
path: root/tests/model_inheritance_regress
AgeCommit message (Collapse)Author
2025-10-16Refs #28586 -- Copied fetch modes to related objects.Adam Johnson
This change ensures that behavior and performance remain consistent when traversing relationships.
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
2022-10-08Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner
assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
2022-09-30Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers."Mariusz Felisiak
This reverts 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 and adds two regression tests: - test_related_manager_refresh(), and - test_create_copy_with_m2m(). Thanks joeli for the report.
2022-04-07Fixed #33618 -- Fixed MTI updates outside of primary key chain.Simon Charette
2022-02-24Refs #7488, Refs #19524 -- Removed obsolete ↵Albert Defler
ModelInheritanceTest.test_issue_7488() test. Obsolete since e9c24bef74e55729b190cf07e0ac452aa4c86fcd.
2022-02-22Removed redundant QuerySet.all() calls in docs and tests.Nick Pope
Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-11-08Fixed #32980 -- Made models cache related managers.Keryn Knight
2020-04-30Removed unused __str__() methods in tests models.Mariusz Felisiak
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
2020-01-15Fixed #29871 -- Allowed setting pk=None on a child model to create a copy.chetan22
Thanks Simon Charette and Tim Graham for the initial patch.
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2017-06-26Fixed #26362 -- Fixed update of the inherited id field of an object when its ↵Paulo Alvarado
parent changes.
2017-05-19Fixed #28210 -- Fixed Model._state.adding on MTI parent model after saving ↵Tim Graham
child model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
2017-05-10Decreased max_length for char fields unless absolutely needed. (#8485)Florian Apolloner
2017-05-05Fixed #28175 -- Fixed __in lookups on a foreign key when using the foreign ↵Tim Graham
key's parent model as the lookup value. Thanks Simon Charette for review.
2017-05-03Fixed #28166 -- Fixed Model._state.db on MTI parent model after saving child ↵Tim Graham
model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-13Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen
assertSequenceEqual().
2016-06-03Fixed #15250 -- Avoided extra query on some multi-table inheritance queries.Paulo
Thanks marekw2143 for the initial patch and carljm for support.
2016-04-22Fixed #26320 -- Deprecated implicit OneToOnField parent_link.Tim Graham
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-10-27Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham
related set.
2015-10-03Refs #15844 -- Added tests for multi-table inheritance related object ↵Tim Graham
filtering efficiency. Fixed in 97774429aeb54df4c09895c07cd1b09e70201f7d.
2015-08-15Refs #21554 -- Added some assertions to a model_inheritance_regress test.Richard Mitchell
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-21Further consolidated the model_inheritance tests.Aymeric Augustin
2014-01-12Fixed #21413 -- resolve_columns fields misalignmentAnssi Kääriäinen
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-12-06Fixed #21554 -- Incorrect SQL generated when using multiple inheritance.pegler
2013-11-02PEP8Jason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-23Fixed E225 pep8 warnings.Tim Graham
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-19Removed unused local variables in tests.Tim Graham
2013-08-15Fixed #20895 -- Made check management command warn if a BooleanField does ↵Alasdair Nicol
not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
2013-08-13Fixed #20883 -- Made model inheritance find parent links in abstract parentsLoic Bistuer
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-05-09Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant
added '__all__' shortcut This also updates all dependent functionality, including modelform_factory and modelformset_factory, and the generic views `ModelFormMixin`, `CreateView` and `UpdateView` which gain a new `fields` attribute.
2013-03-24Fixed #15124 -- Changed the default for BooleanField.Aymeric Augustin
Thanks to the many contributors who updated and improved the patch over the life of this ticket.
2013-03-15Fixed #17502 -- Made joining in inheritance cases consistentAnssi Kääriäinen
The original problem was that when filtering two levels up in inheritance chain, Django optimized the join generation so that the middle model was skipped. But then Django generated joins from top to middle to bottom for SELECT clause, and thus there was one extra join (top->middle->bottom + top -> bottom). This case is fixed in master as the filtering optimization is gone. This has the side effect that in some cases there is still extra join if the SELECT clause doesn't contain anything from middle or bottom.