summaryrefslogtreecommitdiff
path: root/tests/defer
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34458 -- Fixed QuerySet.defer() crash on attribute names.Simon Charette2023-04-051-0/+5
| | | | | | Thanks Andrew Cordery for the report. Regression in b3db6c8dcb5145f7d45eff517bcd96460475c879.
* Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner2022-10-081-1/+1
| | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
* Fixed #21204 -- Tracked field deferrals by field instead of models.Simon Charette2022-08-301-0/+4
| | | | | This ensures field deferral works properly when a model is involved more than once in the same query with a distinct deferral mask.
* Refs #21204 -- Added more QuerySet.defer()/only() tests for invalid fields.Simon Charette2022-08-301-18/+36
|
* 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-51/+67
|
* Fixed #32704 -- Fixed list of deferred fields when chaining QuerySet.defer() ↵David Wobrock2021-07-201-0/+2
| | | | after only().
* Added more tests for chaining QuerySet.defer() after only().David Wobrock2021-07-201-0/+6
|
* Fixed #30427, Fixed #16176 -- Corrected setting descriptor in ↵Carlton Gibson2021-06-152-0/+19
| | | | | | Field.contribute_to_class(). Co-authored-by: Jarek Glowacki <jarekwg@gmail.com>
* Fixed #30988 -- Deprecated the InvalidQuery exception.Simon Charette2019-11-181-3/+3
| | | | | It was barely documented without pointers at its defining location and was abused to prevent misuse of the QuerySet field deferring feature.
* Fixed typos in comments and a test name.Min ho Kim2019-07-191-1/+1
|
* Fixed typos in test comments.Tim Gates2019-06-251-1/+1
|
* Fixed hanging indentation in various code.Mariusz Felisiak2018-03-161-2/+1
|
* Fixed #28549 -- Fixed QuerySet.defer() with super and subclass fields.Jeremy Kerr2017-08-311-0/+5
| | | | | | | Previously, deferring fields in different classes didn't omit the superclass' deferred field. Thanks Simon Charette for the suggested fix.
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-2/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-2/+1
|
* Fixed #26207 -- Replaced dynamic classes with non-data descriptors for ↵Anssi Kääriäinen2016-04-291-6/+5
| | | | deferred instance loading.
* Fixed #26486 -- Fixed a select_related() + defer() MTI edge case.Tim Graham2016-04-131-3/+2
|
* Used assertRaisesMessage in a couple defer tests.Tim Graham2016-04-111-4/+10
|
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-1/+1
| | | | ForeignKey/OneToOneField
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+3
|
* Fixed typos of "select_related" in docs and tests.Josh Schneier2015-02-041-2/+2
|
* Refs #18586 -- Split up tests.defer.DeferTests.test_deferWill Earp2014-12-311-64/+112
|
* Fixed #901 -- Added Model.refresh_from_db() methodAnssi Kääriäinen2014-11-282-1/+41
| | | | | Thanks to github aliases dbrgn, carljm, slurms, dfunckt, and timgraham for reviews.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed E125 pep8 warningsChristopher Medrela2013-11-281-1/+1
|
* PEP8Jason Myers2013-11-021-0/+4
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed E225 pep8 warnings.Tim Graham2013-10-231-1/+1
|
* Made Model.__eq__ consider proxy models equivalentAnssi Kääriäinen2013-08-191-0/+6
| | | | Fixed #11892, fixed #16458, fixed #14492.
* 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.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+215