Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/prefetch_related
Commit message (Collapse)AuthorAgeFilesLines
* Renamed descriptor classes for related objects.Aymeric Augustin2015-09-211-2/+2
| | | | | | | | | | | | The old names were downright confusing. Some seemed to mean the opposite of what the class actually did. The new names follow a consistent nomenclature: (Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor. I mentioned combinations that do not exist in the docstring in order to help people who would search for them in the code base.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-9/+34
|
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-22/+33
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #24873 -- Prevented nested Prefetch objects from ↵Gagaro2015-06-181-0/+11
| | | | being overwritten.
* Fixed #24912 -- Fixed prefetch_related failure for ↵Brian King2015-06-152-0/+112
| | | | | | | UUIDField primary keys This resolves a problem on databases besides PostgreSQL when using prefetch_related with a source model that uses a UUID primary key.
* Fixed E265 comment styleCollin Anderson2015-02-061-7/+7
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-6/+8
|
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-9/+9
| | | | generators and dict comprehension
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-4/+4
| | | | Django test suite.
* Fixed flake8 warnings.Tim Graham2014-09-291-1/+1
|
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-281-3/+3
| | | | | | 3282. Thanks Collin Anderson for the review.
* Avoid the word "stupid".Aymeric Augustin2014-09-091-1/+1
| | | | There's always a better word.
* Reordered setUp code in prefetch_related tests.Aymeric Augustin2014-06-051-18/+42
| | | | | | | This allows these tests to run on databases that reject duplicate NULL values in unique fields e.g. SQL Server. Forward port of 4fb50a9a from stable/1.7.x.
* Fixed the ordering of prefetch lookups so that latter ↵Loic Bistuer2014-05-211-3/+6
| | | | | | lookups can refer to former lookups. Thanks Anssi Kääriäinen and Tim Graham for the reviews. Refs #17001 and #22650.
* Fixed #22650 -- Fixed regression on prefetch_related.Loic Bistuer2014-05-212-1/+70
| | | | | | | | | Regression from f51c1f59 when using select_related then prefetch_related on the reverse side of an O2O: Author.objects.select_related('bio').prefetch_related('bio__books') Thanks Aymeric Augustin for the report and tests. Refs #17001.
* Fixed flake8 warnings introduced in recent commits.Simon Charette2014-04-161-1/+1
|
* Fixed stray comment introduced by d3b71b9.Loic Bistuer2014-04-131-1/+0
| | | | Thanks Claude Paroz for the report.
* Fixed #21760 -- prefetch_related used an inefficient ↵valtron2014-04-121-0/+18
| | | | | | query for reverse FK. Regression introduced by commit 9777442. Refs #21410.
* Fixed #22207 -- Added support for GenericRelation ↵Gabe Jackson2014-03-051-2/+2
| | | | | | | | | | | reverse lookups GenericRelation now supports an optional related_query_name argument. Setting related_query_name adds a relation from the related object back to the content type for filtering, ordering and other query operations. Thanks to Loic Bistuer for spotting a couple of important issues in his review.
* Allowed custom querysets when prefetching single valued ↵Loic Bistuer2014-03-032-7/+68
| | | | | | | | | | | relations The original patch for custom prefetches didn't allow usage of custom queryset for single valued relations (along ForeignKey or OneToOneKey). Allowing these enables calling performance oriented queryset methods like select_related or defer/only. Thanks @akaariai and @timgraham for the reviews. Refs #17001.
* Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette2014-01-261-7/+9
| | | | | | | It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+1
|
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-9/+7
|
* Fixed #21410 -- prefetch_related() for ForeignKeys with ↵Loic Bistuer2013-11-132-5/+45
| | | | | | | | related_name='+' Regression introduced by commit 9777442. Thanks to trac username troygrosfield for the report and test case.
* Fixed a couple flake8 warnings.Tim Graham2013-11-081-0/+1
|
* Fixed #17001 -- Custom querysets for prefetch_related.Loic Bistuer2013-11-072-2/+336
| | | | | | | | | | | | | | | | | This patch introduces the Prefetch object which allows customizing prefetch operations. This enables things like filtering prefetched relations, calling select_related from a prefetched relation, or prefetching the same relation multiple times with different querysets. When a Prefetch instance specifies a to_attr argument, the result is stored in a list rather than a QuerySet. This has the fortunate consequence of being significantly faster. The preformance improvement is due to the fact that we save the costly creation of a QuerySet instance. Thanks @akaariai for the original patch and @bmispelon and @timgraham for the reviews.
* Fixing E302 ErrorsJason Myers2013-11-031-0/+5
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fix all violators of E231Alex Gaynor2013-10-261-3/+3
|
* Fixed E221 pep8 warnings.Tim Graham2013-10-221-2/+2
|
* Removed unused local variables in tests.Tim Graham2013-10-191-22/+20
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-2/+2
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-1/+0
|
* Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol2013-10-181-3/+3
|
* Fixed assorted flake8 errors.Tim Graham2013-10-111-7/+7
|
* Fixed "indentation is not a multiple of four" pep8 issues.Tim Graham2013-09-031-1/+1
|
* 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.
* Fixed #20242 - Added a regression test for prefetch_related.Tim Graham2013-05-281-0/+10
| | | | | | | Issue was fixed by removal of chunked reads from QuerySet iteration in 70679243d1786e03557c28929f9762a119e3ac14. Thanks Simeon Visser for the patch.
* Fixed #19607 - prefetch_related crashLuke Plant2013-05-242-1/+44
| | | | Thanks to av@rdf.ru and flarno11@yahoo.de for the report.
* Fixed #15363 -- Renamed and normalized to `get_queryset` ↵Loic Bistuer2013-03-081-2/+2
| | | | the methods that return a QuerySet.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+817