summaryrefslogtreecommitdiff
path: root/tests/select_related_regress
Commit message (Collapse)AuthorAgeFilesLines
* Removed redundant QuerySet.all() calls in docs and tests.Nick Pope2022-02-221-14/+10
| | | | 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-69/+130
|
* Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani2020-11-061-4/+4
| | | | | | | | This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Removed unused __str__() methods in tests models.Mariusz Felisiak2020-04-301-15/+0
| | | Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
* 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-8/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-182-4/+0
|
* Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen2016-09-131-1/+1
| | | | assertSequenceEqual().
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-081-4/+8
|
* Sorted single letter imports per the latest version of isort.Tim Graham2016-03-281-1/+1
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+6
|
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-18/+27
| | | | ForeignKey/OneToOneField
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+5
|
* Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag2014-11-031-2/+2
|
* Minor cleanup in select_related_regress tests.Aymeric Augustin2014-05-101-5/+1
|
* Fixed #22508 -- Avoided overwriting select_related.Aymeric Augustin2014-05-101-0/+10
| | | | | | | | Previously, known related objects overwrote related objects loaded though select_related. This could cancel the effect of select_related when it was used over more than one level. Thanks boxm for the bug report and timo for bisecting the regression.
* Fixed all E251 violationsAlex Gaynor2013-11-031-2/+2
|
* Fixing E302 ErrorsJason Myers2013-11-021-0/+28
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+1
|
* Fix all violators of E231Alex Gaynor2013-10-261-3/+3
|
* Fixed E225 pep8 warnings.Tim Graham2013-10-231-12/+12
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-2/+2
|
* Removed unused local variables in tests.Tim Graham2013-10-191-7/+7
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-1/+0
|
* Added default value for a BooleanField in test modelsAnssi Kääriäinen2013-10-011-1/+1
| | | | | Test models introduced for #10733 didn't contain default value for a BooleanField(). Check command didn't like that -> check tests failed.
* Fixed #10733 -- select_related().only() failureAnssi Kääriäinen2013-10-012-1/+35
| | | | | The bug was reported pre 1.1, and somewhere along the way it has been fixed. So, this is tests only addition.
* 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/+285