Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/queries
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25550 -- Deprecated direct assignment to the ↵Tim Graham2015-10-271-7/+7
| | | | reverse side of a related set.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-9/+47
|
* Fixed #25382 -- Removed obsolete references to DateQuerySet.Renato Oliveira2015-09-111-3/+3
|
* Fixed #24525 -- Fixed AssertionError in some complex ↵Tim Graham2015-09-052-3/+15
| | | | | | queries. Thanks Anssi Kääriäinen for providing the solution.
* Fixed #19263 -- Fixed crash when filtering using __in ↵Tim Graham2015-09-041-0/+9
| | | | | | and an empty QuerySet. Thanks Marcin Biernat for the initial patch and tests.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-6/+0
|
* Refs #23266 -- Fixed ticket number reference in a ↵Tim Graham2015-08-171-1/+2
| | | | queries test.
* Used skipUnlessDBFeature where appropriate.Simon Charette2015-08-081-2/+1
|
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-64/+68
| | | | on_delete for ForeignKey/OneToOneField
* Refs #23622 -- Added tests to ensure ordering is ↵Anssi Kääriäinen2015-07-201-0/+68
| | | | | | | | | retained for distinct on fields subqueries. The ticket was already fixed by b68212f539f206679580afbfd008e7d329c9cd31. Thanks to Beauhurst for commissioning the work on this ticket.
* Fixed test with incorrect assumption about pk values.Anssi Kääriäinen2015-07-201-1/+8
| | | | | The test results were dependent on the order in which the tests were run.
* Refs #24090 -- Added a test for multi-table inheritance ↵Anssi Kääriäinen2015-07-132-1/+6
| | | | | | | | | | + subqueries. Ticket #24090 was already fixed by b68212f539f206679580afbfd008e7d329c9cd31, this commit adds tests to verify this is indeed the case. Thanks to Beauhurst for commissioning the work on this ticket.
* Fixed a CaptureQueriesContext usage in queries tests.Simon Charette2015-07-091-1/+1
|
* Added a regression test for get() ordering clearing.Simon Charette2015-07-091-0/+8
|
* Fixed flake8 warnings on Python 3.Tim Graham2015-06-151-4/+5
|
* Fixed #24719 -- Restored the ability to use interators ↵Aric Coady2015-04-281-0/+1
| | | | as queryset related object filters.
* Fixed #24605 -- Fixed incorrect reference to alias in ↵Anssi Kääriäinen2015-04-162-6/+45
| | | | | | | subquery. Thanks to charettes and priidukull for investigating the issue, and to kurevin for the report.
* Fixed #24277 -- Added exception when dict used in ↵Alex Wilson2015-04-141-0/+4
| | | | QuerySet filtering
* Refs #24267 -- Implemented lookups for related fieldsAnssi Kääriäinen2015-03-251-0/+8
| | | | | | | | | | Previously related fields didn't implement get_lookup, instead related fields were treated specially. This commit removed some of the special handling. In particular, related fields return Lookup instances now, too. Other notable changes in this commit is removal of support for annotations in names_to_path().
* Fixed #23697 -- Improved ↵Michael Blatherwick2015-03-231-0/+9
| | | | ForeignObject.get_lookup_constraint() error message.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-17/+19
|
* Added a test for refs #24279Anssi Kääriäinen2015-02-061-0/+7
| | | | This issue was fixed in afe0bb7b13bb8dc4370f32225238012c873b0ee3.
* Removed EverythingNodeAnssi Kääriäinen2015-02-041-28/+11
| | | | | At the same time, made sure that empty nodes in where clause match everything.
* Fixed #24211 -- Removed ValuesQuerySet() and ↵Loic Bistuer2015-01-301-7/+6
| | | | | | ValuesListQuerySet(). Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
* Fixed typos in code comments.Adam Taylor2015-01-201-1/+1
|
* Removed support for callable QuerySet arguments per ↵Tim Graham2015-01-181-13/+0
| | | | deprecation timeline; refs #11629.
* Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen2015-01-081-2/+4
| | | | | | | | | | | | | | | Refactored compiler SELECT, GROUP BY and ORDER BY generation. While there, also refactored select_related() implementation (get_cached_row() and get_klass_info() are now gone!). Made get_db_converters() method work on expressions instead of internal_type. This allows the backend converters to target specific expressions if need be. Added query.context, this can be used to set per-query state. Also changed the signature of database converters. They now accept context as an argument.
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-071-1/+1
| | | | | | | retrieving fields. Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
* Fixed a queries test on Python 2 broken after importing ↵Tim Graham2014-12-311-1/+1
| | | | six.moves.range().
* Fixed test from refs #23758.Tim Graham2014-12-311-1/+2
|
* Fixed #23758 -- Allowed more than 5 levels of subqueriesPiotr Pawlaczek2014-12-311-0/+19
| | | | | Refactored bump_prefix() to avoid infinite loop and allow more than than 5 subquires by extending the alphabet to use multi-letters.
* Refs #23947 -- Fixed queries test execution order ↵Diego Guimarães2014-12-151-1/+1
| | | | | | dependency. Specify an id to avoid conflict with objects created in setUpTestData.
* Refactored some tests to take advantage of refs #20392.Thomas Chaumeny2014-12-031-83/+99
|
* Fixed #23853 -- Added Join class to replace JoinInfoAnssi Kääriäinen2014-11-281-4/+5
| | | | | | | | Also removed Query.join_map. This structure was used to speed up join reuse calculation. Initial benchmarking shows that this isn't actually needed. If there are use cases where the removal has real-world performance implications, it should be relatively straightforward to reintroduce it as map {alias: [Join-like objects]}.
* Fixed #23605 -- Fixed nested subquery regressionAnssi Kääriäinen2014-11-202-1/+53
| | | | | | | | Added relabeled_clone() method to sql.Query to fix the problem. It manifested itself in rare cases where at least double nested subquery's filter condition might target non-existing alias. Thanks to Trac alias ris for reporting the problem.
* Renamed qn to compilerJosh Smeaton2014-11-161-32/+32
|
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-69/+70
| | | | Django test suite.
* Fixed #23721 -- check_related_objects without calling ↵Collin Anderson2014-10-281-0/+4
| | | | | | __iter__ Refs #14334
* Fixed #23396 -- Ensured ValueQuerySets are not checked ↵Gabe Jackson2014-10-211-0/+8
| | | | by check_related_objects.
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-281-17/+17
| | | | | | 3282. Thanks Collin Anderson for the review.
* Fixed #23460 -- Added literal `%s` support to extra() ↵Matt Robenolt2014-09-261-0/+15
| | | | QuerySets.
* Fixed #23443 -- Corrected erroneous FieldError message.Thomas Chaumeny2014-09-181-0/+7
| | | | Thanks Tim Graham for the review.
* Fixed #23313 -- Corrected repr(RawQuery) with dict ↵Andrew Torpedov2014-08-291-3/+3
| | | | parameters.
* Fixed #23266 -- Prevented queries caused by type ↵Anubhav Joshi2014-08-111-0/+4
| | | | | | checking lookup values Small modifications done by committer.
* Fixed #23259 -- Corrected insertion order of extra() ↵Rajiv Makhijani2014-08-111-0/+20
| | | | | | | | | select_params A regression caused queries to produce incorrect results for cases where extra(select) is excluded by values() but included by extra(order_by) The regression was caused by 2f35c6f10fcbae541691207fb0c0560a13b754fc.
* Fixed #19671 -- Added warnings that null and validators ↵Anubhav Joshi2014-07-091-1/+1
| | | | | | are ignored for ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review.
* Fixed #14334 -- Query relation lookups now check object ↵Anubhav Joshi2014-07-012-19/+99
| | | | | | | types. Thanks rpbarlow for the suggestion; and loic, akaariai, and jorgecarleitao for reviews.
* Split tests.basic.ModelTests in several tests; refs #18586.zsoldosp2014-06-252-0/+127
|
* Fixed several typos in DjangoAlex Gaynor2014-05-291-1/+1
|
* Fixed #22466 -- ordering by reverse foreign keyAnssi Kääriäinen2014-05-051-0/+12
| | | | | | | | Ordering by reverse foreign key was broken by custom lookups patch (commit 20bab2cf9d02a5c6477d8aac066a635986e0d3f3). Thanks to everybody who helped solving this issue. Special thanks to Trac alias takis for reporting this.