summaryrefslogtreecommitdiff
path: root/tests/queries
AgeCommit message (Collapse)Author
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-11Fixed #25382 -- Removed obsolete references to DateQuerySet.Renato Oliveira
2015-09-05Fixed #24525 -- Fixed AssertionError in some complex queries.Tim Graham
Thanks Anssi Kääriäinen for providing the solution.
2015-09-04Fixed #19263 -- Fixed crash when filtering using __in and an empty QuerySet.Tim Graham
Thanks Marcin Biernat for the initial patch and tests.
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-17Refs #23266 -- Fixed ticket number reference in a queries test.Tim Graham
2015-08-08Used skipUnlessDBFeature where appropriate.Simon Charette
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-20Refs #23622 -- Added tests to ensure ordering is retained for distinct on ↵Anssi Kääriäinen
fields subqueries. The ticket was already fixed by b68212f539f206679580afbfd008e7d329c9cd31. Thanks to Beauhurst for commissioning the work on this ticket.
2015-07-20Fixed test with incorrect assumption about pk values.Anssi Kääriäinen
The test results were dependent on the order in which the tests were run.
2015-07-13Refs #24090 -- Added a test for multi-table inheritance + subqueries.Anssi Kääriäinen
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.
2015-07-09Fixed a CaptureQueriesContext usage in queries tests.Simon Charette
2015-07-09Added a regression test for get() ordering clearing.Simon Charette
2015-06-15Fixed flake8 warnings on Python 3.Tim Graham
2015-04-28Fixed #24719 -- Restored the ability to use interators as queryset related ↵Aric Coady
object filters.
2015-04-16Fixed #24605 -- Fixed incorrect reference to alias in subquery.Anssi Kääriäinen
Thanks to charettes and priidukull for investigating the issue, and to kurevin for the report.
2015-04-14Fixed #24277 -- Added exception when dict used in QuerySet filteringAlex Wilson
2015-03-25Refs #24267 -- Implemented lookups for related fieldsAnssi Kääriäinen
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().
2015-03-23Fixed #23697 -- Improved ForeignObject.get_lookup_constraint() error message.Michael Blatherwick
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-06Added a test for refs #24279Anssi Kääriäinen
This issue was fixed in afe0bb7b13bb8dc4370f32225238012c873b0ee3.
2015-02-04Removed EverythingNodeAnssi Kääriäinen
At the same time, made sure that empty nodes in where clause match everything.
2015-01-30Fixed #24211 -- Removed ValuesQuerySet() and ValuesListQuerySet().Loic Bistuer
Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
2015-01-20Fixed typos in code comments.Adam Taylor
2015-01-18Removed support for callable QuerySet arguments per deprecation timeline; ↵Tim Graham
refs #11629.
2015-01-08Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen
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.
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2014-12-31Fixed a queries test on Python 2 broken after importing six.moves.range().Tim Graham
2014-12-31Fixed test from refs #23758.Tim Graham
2014-12-31Fixed #23758 -- Allowed more than 5 levels of subqueriesPiotr Pawlaczek
Refactored bump_prefix() to avoid infinite loop and allow more than than 5 subquires by extending the alphabet to use multi-letters.
2014-12-15Refs #23947 -- Fixed queries test execution order dependency.Diego Guimarães
Specify an id to avoid conflict with objects created in setUpTestData.
2014-12-03Refactored some tests to take advantage of refs #20392.Thomas Chaumeny
2014-11-28Fixed #23853 -- Added Join class to replace JoinInfoAnssi Kääriäinen
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]}.
2014-11-20Fixed #23605 -- Fixed nested subquery regressionAnssi Kääriäinen
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.
2014-11-16Renamed qn to compilerJosh Smeaton
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-10-28Fixed #23721 -- check_related_objects without calling __iter__Collin Anderson
Refs #14334
2014-10-21Fixed #23396 -- Ensured ValueQuerySets are not checked by check_related_objects.Gabe Jackson
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-26Fixed #23460 -- Added literal `%s` support to extra() QuerySets.Matt Robenolt
2014-09-19Fixed #23443 -- Corrected erroneous FieldError message.Thomas Chaumeny
Thanks Tim Graham for the review.
2014-08-29Fixed #23313 -- Corrected repr(RawQuery) with dict parameters.Andrew Torpedov
2014-08-11Fixed #23266 -- Prevented queries caused by type checking lookup valuesAnubhav Joshi
Small modifications done by committer.
2014-08-11Fixed #23259 -- Corrected insertion order of extra() select_paramsRajiv Makhijani
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.
2014-07-09Fixed #19671 -- Added warnings that null and validators are ignored for ↵Anubhav Joshi
ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review.
2014-07-01Fixed #14334 -- Query relation lookups now check object types.Anubhav Joshi
Thanks rpbarlow for the suggestion; and loic, akaariai, and jorgecarleitao for reviews.
2014-06-25Split tests.basic.ModelTests in several tests; refs #18586.zsoldosp
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-05Fixed #22466 -- ordering by reverse foreign keyAnssi Kääriäinen
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.
2014-05-05Fixed #22429 -- Incorrect SQL when using ~Q and FAnssi Kääriäinen