summaryrefslogtreecommitdiff
path: root/tests/expressions_case
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25367 -- Allowed boolean expressions in QuerySet.filter() and exclude().Matthew Schinckel2019-08-291-1/+4
| | | | | | | | | | | This allows using expressions that have an output_field that is a BooleanField to be used directly in a queryset filters, or in the When() clauses of a Case() expression. Thanks Josh Smeaton, Tim Graham, Simon Charette, Mariusz Felisiak, and Adam Johnson for reviews. Co-Authored-By: NyanKiyoshi <hello@vanille.bid>
* Added tests for raising an error when passing non-boolean expression to When().Mariusz Felisiak2019-08-291-0/+2
|
* Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham2018-03-202-1/+15
| | | | Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
* Fixed #29166 -- Fixed crash in When() expression with a list argument.Mariusz Felisiak2018-02-281-0/+18
| | | | | Thanks Matthew Pava for the report and Tim Graham and Carlton Gibson for reviews. Regression in 19b2dfd1bfe7fd716dd3d8bfa5f972070d83b42f.
* Fixed #28731 -- Added an error message when using an empty Q() in a When ↵Tim Martin2017-12-261-0/+5
| | | | | | expression. Otherwise it generates invalid SQL.
* Refs #24031 -- Added test for Case and When constructor arguments.Mads Jensen2017-10-201-1/+15
|
* Fixed #28584 -- Dropped support for SQLite < 3.7.15.Tim Graham2017-10-031-7/+1
|
* Fixed #27849 -- Added filtering support to aggregates.Tom2017-08-121-0/+9
|
* Refs #23919 -- Removed misc references to Python 2.Tim Graham2017-01-211-2/+0
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-4/+3
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-5/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-182-4/+0
|
* Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham2017-01-172-15/+0
|
* Fixed #27482 -- Doc'd an example of Case() in QuerySet.filter().Jonatas CD2016-11-171-0/+14
|
* Fixed #26433 -- Fixed Case expressions with empty When.Johannes Dollinger2016-08-081-0/+10
|
* Sorted single letter imports per the latest version of isort.Tim Graham2016-03-281-1/+1
|
* Refs #26071 -- Added test for __in lookup in a Case expression.Alberto Avila2016-01-131-1/+12
| | | | Forwardport of 5b3c66d8b64add684489f5010e43de73e7acdd04 from stable/1.8.x
* Fixed #25316 -- Fixed a crash with order_by() and values() after annotate().varunnaganathan2016-01-021-0/+12
|
* Fixed many spelling mistakes in code, comments, and docs.Josh Soref2015-12-031-1/+1
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-3/+16
|
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-3/+3
| | | | ForeignKey/OneToOneField
* Fixed #24924 -- Join promotion for multiple Case expressionsMark Lavin2015-06-051-0/+42
|
* Refs #24833 -- Forwardported some of "Fixed Case expressions with exclude()."Andriy Sokolovskiy2015-06-051-0/+12
| | | | | Partial forwardport of 469f1e362bb9670b174b37da9edd4631aff7badb from stable/1.8.x as the issue was already fixed in master.
* Fixed #24705 -- Fixed negated Q objects in expressions.Anssi Kääriäinen2015-05-201-0/+42
| | | | Avoided split_exclude() for Q when used as an expression.
* Fixed #24766 -- Added join promotion for Case expressionsAnssi Kääriäinen2015-05-111-0/+32
|
* Fixed #24752 -- query crash when reusing Case expressionsAnssi Kääriäinen2015-05-051-0/+12
| | | | | Case expressions weren't copied deep enough (self.cases list was reused resulting in an error).
* Fixed #24420 -- Allowed ordering by case expressionsJosh Smeaton2015-03-061-0/+24
|
* Refs #14030 -- Improved expression support for python valuesJosh Smeaton2015-02-121-60/+60
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-4/+4
|
* Removed IPAddressField per deprecation timeline; refs #20439.Tim Graham2015-01-192-16/+0
|
* Fixed #24148 -- Documented a bug with case expressions in SQLite < 3.7.0Michał Modzelewski2015-01-151-1/+7
|
* Made an expressions_case test work without Pillow.Collin Anderson2015-01-152-1/+14
|
* Fixed #24031 -- Added CASE expressions to the ORM.Michał Modzelewski2015-01-123-0/+1163