summaryrefslogtreecommitdiff
path: root/tests/lookup/tests.py
AgeCommit message (Collapse)Author
2017-11-15[2.0.x] Skipped test_exact_sliced_queryset_limit_one_offset on Oracle.Mariusz Felisiak
This required slicing on subquery with equal operator. Thanks Tim Graham for the review.
2017-10-16[2.0.x] Fixed #28497 -- Restored the ability to use sliced QuerySets with ↵Tim Graham
__exact. Regression in ec50937bcbe160e658ef881021402e156beb0eaf. Thanks Simon Charette for review. Backport of 1b73ccc4bf78af905f72f4658cf463f38ebf7b97 from master
2017-07-31Fixed #27985 -- Fixed query for __exact=value when get_prep_value() converts ↵Sergey Fedoseev
value to None. Also fixed crash of .filter(field__transform=None).
2017-07-31Fixed #28453 -- Made __exact=None lookup use transforms.Sergey Fedoseev
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-07-21Fixed #27970 -- Allowed QuerySet.in_bulk() to fetch on fields besides ↵Tom Carrick
primary key.
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-03-27Fixed #21160 -- Fixed QuerySet.in_bulk() crash on SQLite when requesting ↵Mariusz Felisiak
more than 999 ids. Thanks Andrei Picus and Anssi Kääriäinen for the initial patch and Tim Graham for the review.
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26285 -- Removed MySQL __search lookup per deprecation timeline.Tim Graham
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-27Fixed #27268 -- Restored an invalid related field lookup error message in ↵Mariusz Felisiak
QuerySet filtering.
2016-09-17Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham
http://bugs.python.org/issue27364
2016-09-13Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen
assertSequenceEqual().
2016-03-02Fixed #26285 -- Deprecated the MySQL-specific __search lookup.Marc Tamlyn
2016-02-26Fixed #25811 -- Added a helpful error when making _in queries across ↵Edwar Baron
different databases.
2016-02-05Fixed #26176 -- Fixed E123 flake8 warnings.Tim Graham
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-25Fixed #26125 -- Fixed E731 flake warnings.userimack
2015-12-26Fixed #8065 -- Made id_list an optional argument for QuerySet.in_bulk().Bryan Marty
2015-10-27Fixed #25609 -- Fixed regression in related field nested lookup error.Ian Foote
2015-10-27Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham
related set.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-03Fixed #25335 -- Fixed regression where QuerySet.iterator() didn't return an ↵Gavin Wahl
iterator.
2015-04-20Fixed #22394 -- Refactored built-in datetime lookups to transforms.Jon Dufresne
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-05-05Fixed #22489 -- missing implemenation for search lookupJakub Roztocil
When custom lookups were added, converting the search lookup to use the new Lookup infrastructure wasn't done. Some changes were needed to the added test, main change done by committer was ensuring the test works on MySQL versions prior to 5.6.
2014-03-30Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor
2014-03-07Fixed #21863 -- supplemented get_lookup() with get_transform()Anssi Kääriäinen
Also fixed #22124 -- Expanded explanation of exactly what is going on in as_sql() methods.
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2013-11-03Fixed all E226 violationsAlex Gaynor
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-19Removed unused local variables in tests.Tim Graham
2013-07-31Added field.attname to Options.name_mapAnssi Kääriäinen
The change also removed allow_explicit_fk from sql/query.py.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-06-26Fixed #20462 - Replaced the str() cast introduced in 273dc55 by force_text()Loic Bistuer
2013-06-26Fixed #20462 -- null/non-string regex lookups are now consistentAndrew Clark
Thanks to noirbizarre for the report and initial patch.
2013-06-11Revert "Fixed #20462 - Fixed sqlite regex lookups for null values and ↵Tim Graham
non-string fields." This reverts commit 64041f0e6e7a773574d7cde978d16305200004ea. lookup.tests.LookupTests.test_regex_non_string fails under Postgres. We should also try to rewrite the test using an existing model.
2013-06-11Fixed #20462 - Fixed sqlite regex lookups for null values and non-string fields.Axel Haustant
2013-06-10Reverted the introduction of shared_models.Florian Apolloner
The recent improvements should make shared_models obsolete. This reverts commit 1059da8de675442e84381d6366c0be254681753e, reversing changes made to 4fa7f3cdd9bcf50ec4c7f64a31c1dfc02c375f46.
2013-06-10Revert "Began implementing a shared set of test models to speed up tests."Florian Apolloner
This reverts commit 22b7870e40a3ecf022b423de6cd867dcb35a6940.
2013-03-13Began implementing a shared set of test models to speed up tests.Florian Apolloner
2013-03-13Merge pull request #900 from bmispelon/ticket-20022Jacob Kaplan-Moss
Fix #20022: Correctly handle prefixes with url-unsafe characters in reverse()
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner