summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/aggregates/general.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #10929 -- Stopped forcing empty result value by PostgreSQL aggregates.Mariusz Felisiak2023-01-171-62/+5
| | | | Per deprecation timeline.
* Refs #33308 -- Deprecated support for passing encoded JSON string literals ↵Simon Charette2022-12-011-6/+46
| | | | | | | to JSONField & co. JSON should be provided as literal Python objects an not in their encoded string literal forms.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-22/+26
|
* Fixed #32961 -- Added BitXor() aggregate to django.contrib.postgres.Nick Pope2021-10-011-1/+6
|
* Fixed #33114 -- Defined default output_field of StringAgg.ali2021-09-271-1/+4
| | | | Thanks Simon Charette for the review.
* Refs #10929 -- Deprecated forced empty result value for PostgreSQL aggregates.Nick Pope2021-07-191-17/+52
| | | | | | | | This deprecates forcing a return value for ArrayAgg, JSONBAgg, and StringAgg when there are no rows in the query. Now that we have a ``default`` argument for aggregates, we want to revert to returning the default of ``None`` which most aggregate functions return and leave it up to the user to decide what they want to be returned by default.
* Fixed #10929 -- Added default argument to aggregates.Nick Pope2021-07-191-3/+3
| | | | Thanks to Simon Charette and Adam Johnson for the reviews.
* Fixed #32169 -- Added distinct support to JSONBAgg.Artur Beltsov2020-11-041-1/+2
|
* Fixed #31956 -- Fixed crash of ordering by JSONField with a custom decoder ↵Mariusz Felisiak2020-08-281-1/+1
| | | | | | | on PostgreSQL. Thanks Marc Debureaux for the report. Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews.
* Refs #31720 -- Defined default output_field of BoolAnd() and BoolOr() ↵David Chorpash2020-07-211-1/+3
| | | | aggregate functions.
* Fixed #31691 -- Added ordering support to JSONBAgg.John Parton2020-06-131-1/+2
|
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-2/+2
| | | | | | | | | | | Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-2/+1
|
* Fixed CVE-2020-7471 -- Properly escaped StringAgg(delimiter) parameter.Simon Charette2020-02-031-2/+4
|
* Fixed #28658 -- Added DISTINCT handling to the Aggregate class.Simon Charette2019-01-091-6/+4
|
* Fixed #26067 -- Added ordering support to ArrayAgg and StringAgg.Floris den Hengst2018-06-281-4/+6
|
* Fixed #28908 -- Allowed ArrayField lookups on ArrayAgg annotations.Sergey Fedoseev2017-12-301-1/+5
|
* Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham2017-07-201-3/+3
| | | | | | Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
* Fixed #28394 -- Allowed setting BaseExpression.output_field (renamed from ↵Sergey Fedoseev2017-07-141-1/+1
| | | | _output_field).
* Fixed #27767 -- Added distinct argument to ArrayAgg.orf2017-02-041-0/+4
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #26327 -- Renamed JsonAgg to JSONBAgg.Mads Jensen2016-11-281-2/+2
| | | | Thanks to Christian von Roques for the report.
* Fixed #26327 -- Added JsonAgg to contrib.postgres.Mads Jensen2016-10-071-1/+12
| | | | Thanks Tim Graham for review.
* Fixed #26617 -- Added distinct argument to contrib.postgres's StringAgg.Rustam Kashapov2016-06-021-3/+4
|
* Fixed #24301 -- Added PostgreSQL-specific aggregate functionsAndriy Sokolovskiy2015-03-301-0/+43