summaryrefslogtreecommitdiff
path: root/tests/lookup/models.py
AgeCommit message (Collapse)Author
2023-05-08Fixed #34544 -- Avoided DBMS_LOB.SUBSTR() wrapping with IS NULL condition on ↵Mariusz Felisiak
Oracle. Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca. Thanks Michael Smith for the report. This also reverts commit 1e4da439556cdd69eb9f91e07f99cf77997e70d2.
2022-12-16Fixed lookup.tests.LookupTests.test_exact_none_transform() test on Oracle.Mariusz Felisiak
NulledTransform doesn't return TextField anymore so it cannot be wrapped with DBMS_LOB.SUBSTR(). Test regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-04-23Fixed #32673 -- Fixed lookups crash when comparing against lookups on ↵Simon Charette
PostgreSQL. Regression in 3a505c70e7b228bf1212c067a8f38271ca86ce09. Nonlitteral right-hand-sides of lookups need to be wrapped in parentheses to avoid operator precedence ambiguities. Thanks Charles Lirsac for the detailed report.
2020-04-30Removed unused __str__() methods in tests models.Mariusz Felisiak
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
2020-04-23Fixed #31500 -- Fixed detecting of unique fields in QuerySet.in_bulk() when ↵Hannes Ljungberg
using Meta.constraints. Detection of unique fields now takes into account non-partial unique constraints.
2019-10-21Fixed #30841 -- Deprecated using non-boolean values for isnull lookup.André Ericson
2018-04-04Fixed #25718 -- Made a JSONField lookup value of None match keys that have a ↵Dmitry Dygalo
null value.
2018-03-14Fixed #29155 -- Fixed crash when database functions are used with pattern ↵Mariusz Felisiak
lookups. Thanks Tim Graham and Sergey Fedoseev for reviews.
2017-12-28Removed unnecessary trailing commas and spaces in various code.Mariusz Felisiak
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-21Fixed #27970 -- Allowed QuerySet.in_bulk() to fetch on fields besides ↵Tom Carrick
primary key.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
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-12-24Fixed #27498 -- Fixed filtering on annotated DecimalField on SQLite.Peter Inglesby
2016-03-02Fixed #26285 -- Deprecated the MySQL-specific __search lookup.Marc Tamlyn
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-06-04Fixed #22316 -- Added time filters to TimeField on SQLite.Matthew Somerville
This was implemented for non-SQLite backends in 1.7 (as a side effect of #16187).
2014-09-24Removed numbering from the models.py header of some test packages.Loic Bistuer
This is a reliqua from the early days of the modeltests/regressiontests era.
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.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
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-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