summaryrefslogtreecommitdiff
path: root/django/db/models/fields/json.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34539 -- Restored get_prep_value() call when adapting JSONFields.Julie Rymer2023-05-161-0/+2
| | | | Regression in 5c23d9f0c32f166c81ecb6f3f01d5077a6084318.
* Refs #33308 -- Deprecated support for passing encoded JSON string literals ↵Simon Charette2022-12-011-2/+29
| | | | | | | to JSONField & co. JSON should be provided as literal Python objects an not in their encoded string literal forms.
* Refs #33308 -- Used get_db_prep_value() to adapt JSONFields.Simon Charette2022-11-151-5/+14
|
* Used more augmented assignment statements.Nick Pope2022-10-311-5/+5
| | | | | | Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
* Fixed #33966 -- Added support for using KeyTextTransform from lookup.Allen Jonathan David2022-09-161-0/+13
|
* Refs #26511 -- Fixed json.KeyTextTransform() on MySQL/MariaDB.Mariusz Felisiak2022-08-181-0/+12
|
* Fixed #33552 -- Fixed JSONField has key lookups with numeric keys on ↵Sage Abdullah2022-03-151-10/+16
| | | | MariaDB, MySQL, Oracle, and SQLite.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-109/+140
|
* Fixed #32483 -- Fixed QuerySet.values()/values_list() on JSONField key ↵Mariusz Felisiak2021-03-231-21/+17
| | | | | | transforms with booleans on SQLite. Thanks Matthew Cornell for the report.
* Fixed #32411 -- Fixed __icontains lookup for JSONField on MySQL.Hasan Ramezani2021-02-051-20/+25
|
* Fixed #32252 -- Fixed __isnull=True on key transforms on SQLite and Oracle.sage2020-12-111-4/+15
| | | | __isnull=True on key transforms should not match keys with NULL values.
* Removed lhs_only argument from KeyTransform.preprocess_lhs().sage2020-12-071-7/+5
|
* Fixed #32203 -- Fixed QuerySet.values()/values_list() crash on key ↵sage2020-11-251-0/+4
| | | | | | transforms with non-string values on SQLite. Thanks Gordon Wrigley for the report.
* Simplified JSONField key transforms by using JSON_OBJECT() on Oracle.Mariusz Felisiak2020-11-241-9/+8
|
* Fixed #32182 -- Fixed crash of JSONField nested key transforms with subquery ↵Hannes Ljungberg2020-11-101-1/+2
| | | | annotations on PostgreSQL.
* Refs #32096 -- Made JSONField check respect Meta.required_db_vendor.Mariusz Felisiak2020-10-151-0/+5
| | | Thanks Simon Charette for the implementation idea.
* Refs #32096 -- Fixed __in lookup crash against key transforms for JSONField.Mariusz Felisiak2020-10-141-19/+18
| | | | | | | Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd and 1251772cb83aa4106f526fe00738e51c0eb59122. Thanks Simon Charette and Igor Jerosimić for the report.
* Fixed #31956 -- Fixed crash of ordering by JSONField with a custom decoder ↵Mariusz Felisiak2020-08-281-10/+0
| | | | | | | on PostgreSQL. Thanks Marc Debureaux for the report. Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews.
* Fixed #31936 -- Fixed __in lookup on key transforms for JSONField.Mariusz Felisiak2020-08-261-0/+25
| | | | | | This resolves an issue on databases without a native JSONField (MariaDB, MySQL, SQLite, Oracle), where values must be wrapped. Thanks Sébastien Pattyn for the report.
* Fixed #31829 -- Used JSONField __contains lookup on key transforms.sage2020-07-281-5/+0
|
* Fixed #31836 -- Dropped support for JSONField __contains and __contained_by ↵Mariusz Felisiak2020-07-281-6/+8
| | | | | | | | | | lookups on SQLite. The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object".
* Fixed #31835 -- Dropped support for JSONField __contains lookup on Oracle.Mariusz Felisiak2020-07-281-18/+1
| | | | | | | | The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object".
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-0/+525
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>