summaryrefslogtreecommitdiff
path: root/tests/model_inheritance_regress
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner2022-10-081-3/+3
| | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
* Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers."Mariusz Felisiak2022-09-301-5/+0
| | | | | | | | This reverts 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 and adds two regression tests: - test_related_manager_refresh(), and - test_create_copy_with_m2m(). Thanks joeli for the report.
* Fixed #33618 -- Fixed MTI updates outside of primary key chain.Simon Charette2022-04-071-0/+12
|
* Refs #7488, Refs #19524 -- Removed obsolete ↵Albert Defler2022-02-241-10/+0
| | | | | | ModelInheritanceTest.test_issue_7488() test. Obsolete since e9c24bef74e55729b190cf07e0ac452aa4c86fcd.
* Removed redundant QuerySet.all() calls in docs and tests.Nick Pope2022-02-221-2/+2
| | | | Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-072-148/+237
|
* Fixed #32980 -- Made models cache related managers.Keryn Knight2021-11-081-0/+5
|
* Removed unused __str__() methods in tests models.Mariusz Felisiak2020-04-301-31/+0
| | | Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
* Fixed #29871 -- Allowed setting pk=None on a child model to create a copy.chetan222020-01-151-4/+33
| | | | Thanks Simon Charette and Tim Graham for the initial patch.
* Fixed hanging indentation in various code.Mariusz Felisiak2018-03-161-26/+20
|
* Fixed #26362 -- Fixed update of the inherited id field of an object when its ↵Paulo Alvarado2017-06-261-0/+37
| | | | parent changes.
* Fixed #28210 -- Fixed Model._state.adding on MTI parent model after saving ↵Tim Graham2017-05-191-1/+2
| | | | | | child model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
* Decreased max_length for char fields unless absolutely needed. (#8485)Florian Apolloner2017-05-101-1/+1
|
* Fixed #28175 -- Fixed __in lookups on a foreign key when using the foreign ↵Tim Graham2017-05-051-0/+6
| | | | | key's parent model as the lookup value. Thanks Simon Charette for review.
* Fixed #28166 -- Fixed Model._state.db on MTI parent model after saving child ↵Tim Graham2017-05-031-0/+4
| | | | | | model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-11/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-182-4/+0
|
* Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham2017-01-171-1/+0
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-102-18/+14
|
* Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen2016-09-131-8/+2
| | | | assertSequenceEqual().
* Fixed #15250 -- Avoided extra query on some multi-table inheritance queries.Paulo2016-06-031-0/+32
| | | | Thanks marekw2143 for the initial patch and carljm for support.
* Fixed #26320 -- Deprecated implicit OneToOnField parent_link.Tim Graham2016-04-222-21/+5
|
* Refs #26022 -- Used context manager version of assertRaises in tests.Hasan2016-01-291-14/+8
|
* Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham2015-10-271-3/+3
| | | | related set.
* Refs #15844 -- Added tests for multi-table inheritance related object ↵Tim Graham2015-10-031-0/+19
| | | | | | filtering efficiency. Fixed in 97774429aeb54df4c09895c07cd1b09e70201f7d.
* Refs #21554 -- Added some assertions to a model_inheritance_regress test.Richard Mitchell2015-08-151-1/+4
|
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-7/+7
| | | | ForeignKey/OneToOneField
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-6/+8
|
* Fixed several typos in DjangoAlex Gaynor2014-05-281-1/+1
|
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-3/+3
|
* Further consolidated the model_inheritance tests.Aymeric Augustin2014-04-212-0/+27
|
* Fixed #21413 -- resolve_columns fields misalignmentAnssi Kääriäinen2014-01-121-0/+6
|
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-4/+2
|
* Fixed #21554 -- Incorrect SQL generated when using multiple inheritance.pegler2013-12-062-1/+22
|
* PEP8Jason Myers2013-11-021-0/+37
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fix all violators of E231Alex Gaynor2013-10-262-7/+7
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+1
|
* Fixed E225 pep8 warnings.Tim Graham2013-10-231-1/+1
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-212-4/+4
|
* Removed unused local variables in tests.Tim Graham2013-10-191-2/+2
|
* Fixed #20895 -- Made check management command warn if a BooleanField does ↵Alasdair Nicol2013-08-151-4/+4
| | | | | | | not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
* Fixed #20883 -- Made model inheritance find parent links in abstract parentsLoic Bistuer2013-08-132-1/+28
|
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-2/+2
| | | | Refs #20680.
* Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant2013-05-091-0/+2
| | | | | | | | 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.
* Fixed #15124 -- Changed the default for BooleanField.Aymeric Augustin2013-03-241-2/+2
| | | | | Thanks to the many contributors who updated and improved the patch over the life of this ticket.
* Fixed #17502 -- Made joining in inheritance cases consistentAnssi Kääriäinen2013-03-151-0/+17
| | | | | | | | | | | | 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.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+608