summaryrefslogtreecommitdiff
path: root/tests/model_inheritance
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33984 -- Added test for creating copies of model instances with ↵Mariusz Felisiak2022-11-022-0/+21
| | | | inherited m2m fields.
* Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner2022-10-081-11/+11
| | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
* Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() ↵Mariusz Felisiak2022-10-071-3/+3
| | | | | where appropriate. Follow up to 3f7b3275627385f8f7531fca01cdda50d4ec6b6e.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-073-172/+253
|
* Fixed #33131 -- Improved error messages for clashing reverse accessor names.Bernd Wechner2021-10-061-2/+3
|
* Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith2021-07-291-1/+1
| | | | appropriate.
* Used more specific unittest assertions in tests.Mads Jensen2021-07-071-3/+3
|
* Fixed #30427, Fixed #16176 -- Corrected setting descriptor in ↵Carlton Gibson2021-06-152-9/+77
| | | | | | Field.contribute_to_class(). Co-authored-by: Jarek Glowacki <jarekwg@gmail.com>
* Refs #30427, Refs #16176 -- Added test for abstract model inheritance.Carlton Gibson2021-06-151-0/+30
|
* Fixed #32355 -- Dropped support for Python 3.6 and 3.7Mariusz Felisiak2021-02-101-3/+0
|
* Added app labels to related fields checks messages E302-E305.Mariusz Felisiak2020-12-291-6/+11
|
* Removed unused __str__() methods in tests models.Mariusz Felisiak2020-04-301-21/+0
| | | Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
* Fixed #31223 -- Added __class_getitem__() to Manager and QuerySet.sobolevn2020-04-151-0/+8
|
* Fixed #31437 -- Corrected tests to show abstract multiple inheritance system ↵Carlton Gibson2020-04-081-17/+14
| | | | | | | | check error. Added minimal multiple inheritance test case showing error. Removed obsolete diamond-inheritance case, originally added in 85ef98dc6ec565b1add417bd76808664e7318026.
* Fixed #31285 -- Fixed inherited Meta.ordering of "-pk".Jon Dufresne2020-03-192-1/+16
|
* Fixed typo in tests/model_inheritance/tests.py.Nikita Sobolev2020-02-061-1/+1
|
* Fixed #30116 -- Dropped support for Python 3.5.Tim Graham2019-01-301-4/+0
|
* Fixed #29970, #30041 -- Made ModelBase.__new__() pass attrs without ↵Sergey Fedoseev2018-12-221-2/+17
| | | | contribute_to_class() to type.__new__().
* Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham2018-11-271-2/+2
|
* Fixed #29568 -- Prevented unnecessary UPDATE queries creating child models.François Dupayrat2018-07-201-0/+18
|
* Fixed some assertTrue() that were intended to be assertEqual().Sergey Fedoseev2018-07-091-2/+2
|
* Fixed #28834 -- Followed ancestor links on field cache lookup failure.Simon Charette2017-11-292-0/+17
| | | | Thanks Tim for the review.
* Fixed #28695 -- Allowed models to use __init_subclass__().k2017-10-131-0/+19
|
* Used assertRaisesMessage() to test Django's error messages.Mads Jensen2017-07-292-5/+12
|
* Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne2017-06-011-2/+2
|
* Sorted imports per isort 4.2.9.Tim Graham2017-06-011-1/+0
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #23919 -- Removed str() conversion of type and method __name__.Simon Charette2017-01-191-5/+5
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-192-3/+3
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-3/+2
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-9/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-183-6/+0
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-7/+5
|
* Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen2016-09-131-4/+2
| | | | assertSequenceEqual().
* Avoided uncessary table creation in model_inheritance tests.Simon Charette2016-05-314-69/+30
|
* Fixed #24305 -- Allowed overriding fields on abstract models.Aron Podrigal2016-05-161-0/+354
| | | | | | Fields inherited from abstract base classes may be overridden like any other Python attribute. Inheriting from multiple models/classes with the same attribute name will follow the MRO.
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-081-4/+2
|
* Fixed #26413 -- Fixed a regression with abstract model inheritance and ↵Simon Charette2016-03-281-2/+18
| | | | | | explicit parent links. Thanks Trac alias trkjgrdg for the report and Tim for investigation and review.
* Removed unnecessary filter kwarg from .get() in a test.Adam Alton2016-03-141-1/+1
|
* Refs #26022 -- Used context manager version of assertRaises in tests.Hasan2016-01-291-20/+14
|
* Fixed #25354 -- Added class/app_label interpolation for related_query_name.James Pulec2016-01-282-1/+15
|
* Renamed __unicode__() to __str__() in some test comments.Tim Graham2015-11-191-1/+1
|
* Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham2015-10-271-2/+2
| | | | related set.
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-5/+5
| | | | ForeignKey/OneToOneField
* Sorted imports with isort; refs #23860.Tim Graham2015-02-063-5/+7
|
* Fixed #15321 -- Honored ancestors unique checks.Aron Podrigal2015-02-032-2/+53
| | | | Thanks to Tim for the review.
* Removed support for syncing apps without migrations per deprecation timeline.Tim Graham2015-01-181-1/+1
| | | | | Kept support for creating models without migrations when running tests (especially for Django's test suite).
* Refs #18586 -- Split up model_inheritance.ModelInheritanceTestAlexander Shchapov2014-12-031-133/+135
|
* Fixed #20392 -- Added TestCase.setUpTestData()Thomas Chaumeny2014-12-031-7/+14
| | | | Each TestCase is also now wrapped in a class-wide transaction.
* Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-031-1/+1
|