summaryrefslogtreecommitdiff
path: root/tests/expressions_case
AgeCommit message (Collapse)Author
2026-04-03Fixed #37016 -- Avoided propagating invalid arguments from When() to Q().varunkasyap
2022-10-08Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner
assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
2022-08-09Fixed #33895 -- Fixed Case() crash with filters that match everything in When().David Wobrock
Thanks shukryzablah for the report.
2022-02-22Removed redundant QuerySet.all() calls in docs and tests.Nick Pope
Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-11-08Fixed #33257 -- Fixed Case() and ExpressionWrapper() with decimal values on ↵Matthijs Kooijman
SQLite.
2021-01-14Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.Mariusz Felisiak
2020-10-22Replaced @no_oracle skips with DatabaseFeatures.allows_group_by_lob.Tim Graham
2020-10-21Fixed #32126 -- Fixed grouping by Case() annotation without cases.Hannes Ljungberg
Co-authored-by: Simon Charette <charettes@users.noreply.github.com>
2020-07-15Refs #30446 -- Removed unnecessary Value(..., output_field) in docs and tests.Simon Charette
2020-07-14Stopped adapting DecimalField values to strings on PostgreSQL.Simon Charette
The psycopg2 backend uses the type information to provide type hints.
2020-05-27Fixed #31606 -- Allowed using condition with lookups in When() expression.Ryan Heard
2020-04-30Removed unused __str__() methods in tests models.Mariusz Felisiak
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
2020-02-04Simplified imports from django.db and django.contrib.gis.db.Nick Pope
2019-11-19Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede
2019-08-29Fixed #25367 -- Allowed boolean expressions in QuerySet.filter() and exclude().Matthew Schinckel
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>
2019-08-29Added tests for raising an error when passing non-boolean expression to When().Mariusz Felisiak
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-02-28Fixed #29166 -- Fixed crash in When() expression with a list argument.Mariusz Felisiak
Thanks Matthew Pava for the report and Tim Graham and Carlton Gibson for reviews. Regression in 19b2dfd1bfe7fd716dd3d8bfa5f972070d83b42f.
2017-12-26Fixed #28731 -- Added an error message when using an empty Q() in a When ↵Tim Martin
expression. Otherwise it generates invalid SQL.
2017-10-20Refs #24031 -- Added test for Case and When constructor arguments.Mads Jensen
2017-10-03Fixed #28584 -- Dropped support for SQLite < 3.7.15.Tim Graham
2017-08-12Fixed #27849 -- Added filtering support to aggregates.Tom
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
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 #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham
2016-11-17Fixed #27482 -- Doc'd an example of Case() in QuerySet.filter().Jonatas CD
2016-08-08Fixed #26433 -- Fixed Case expressions with empty When.Johannes Dollinger
2016-03-28Sorted single letter imports per the latest version of isort.Tim Graham
2016-01-13Refs #26071 -- Added test for __in lookup in a Case expression.Alberto Avila
Forwardport of 5b3c66d8b64add684489f5010e43de73e7acdd04 from stable/1.8.x
2016-01-02Fixed #25316 -- Fixed a crash with order_by() and values() after annotate().varunnaganathan
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-06-05Fixed #24924 -- Join promotion for multiple Case expressionsMark Lavin
2015-06-05Refs #24833 -- Forwardported some of "Fixed Case expressions with exclude()."Andriy Sokolovskiy
Partial forwardport of 469f1e362bb9670b174b37da9edd4631aff7badb from stable/1.8.x as the issue was already fixed in master.
2015-05-20Fixed #24705 -- Fixed negated Q objects in expressions.Anssi Kääriäinen
Avoided split_exclude() for Q when used as an expression.
2015-05-11Fixed #24766 -- Added join promotion for Case expressionsAnssi Kääriäinen
2015-05-05Fixed #24752 -- query crash when reusing Case expressionsAnssi Kääriäinen
Case expressions weren't copied deep enough (self.cases list was reused resulting in an error).
2015-03-06Fixed #24420 -- Allowed ordering by case expressionsJosh Smeaton
2015-02-12Refs #14030 -- Improved expression support for python valuesJosh Smeaton
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-19Removed IPAddressField per deprecation timeline; refs #20439.Tim Graham
2015-01-15Fixed #24148 -- Documented a bug with case expressions in SQLite < 3.7.0Michał Modzelewski
2015-01-15Made an expressions_case test work without Pillow.Collin Anderson
2015-01-12Fixed #24031 -- Added CASE expressions to the ORM.Michał Modzelewski