summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_json.py
AgeCommit message (Collapse)Author
2020-05-08Fixed #12990, Refs #27694 -- Added JSONField model field.sage
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>
2020-02-05Refs #28214 -- Added test for escaping JSONField key lookups.Mariusz Felisiak
Thanks mrsanders for the report. Fixed in 7deeabc7c7526786df6894429ce89a9c4b614086.
2019-10-17Refs #12990 -- Moved CheckFieldDefaultMixin to the ↵sage
django.db.models.fields.mixins.
2019-10-11Fixed #30826 -- Fixed crash of many JSONField lookups when one hand side is ↵Louise Grandjonc
key transform. Regression in 6c3dfba89215fc56fc27ef61829a6fff88be4abb.
2019-09-16Fixed #30769 -- Fixed a crash when filtering against a subquery ↵Simon Charette
JSON/HStoreField annotation. This was a regression introduced by 7deeabc7c7526786df6894429ce89a9c4b614086 to address CVE-2019-14234. Thanks Tim Kleinschmidt for the report and Mariusz for the tests.
2019-08-14Fixed #30672 -- Fixed crash of JSONField/HStoreField key transforms on ↵Mariusz Felisiak
expressions with params. Regression in 4f5b58f5cd3c57fee9972ab074f8dc6895d8f387. Thanks Florian Apolloner for the report and helping with tests.
2019-08-13Fixed #30704 -- Fixed crash of JSONField nested key and index transforms on ↵Mariusz Felisiak
expressions with params. Thanks Florian Apolloner for the report and helping with tests.
2019-08-01Fixed CVE-2019-14234 -- Protected JSONField/HStoreField key and index ↵Mariusz Felisiak
lookups against SQL injection. Thanks to Sage M. Abdullah for the report and initial patch. Thanks Florian Apolloner for reviews.
2019-06-28Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne
Thanks Claude Paroz for assistance with translations.
2019-04-18Fixed #30335, #29139 -- Fixed crash when ordering or aggregating over a ↵can
nested JSONField key transform.
2019-03-21Used QuerySet.bulk_create() in a couple of postgres tests.oliver
Follow up to 0ce2ad9ca4623cfd6dc2515430c0ae8a1717a607.
2019-03-01Refs #29408 -- Cosmetic edits for validation of related fields and lookups ↵Mariusz Felisiak
in model Meta.ordering. Follow up to 440505cb2cadbe1a5b9fba246bcde6c04f51d07e.
2019-03-01Fixed #29408 -- Added validation of related fields and lookups in model ↵Hasan Ramezani
Meta.ordering.
2018-11-27Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham
2018-04-04Fixed #25718 -- Made a JSONField lookup value of None match keys that have a ↵Dmitry Dygalo
null value.
2018-03-21Refs #29147 --- Added JSONField serialization tests.Tim Graham
2018-02-10Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).Matthew Wilkes
2017-11-11Fixed #28534 -- Made JSONField.has_changed() ignore key order and consider ↵shanghui
True/1 values as different.
2017-10-20Fixed #28577 -- Added checks for ArrayField and JSONField to prevent mutable ↵Flávio Juvenal
defaults.
2017-09-27Fixed #28626 -- Dropped support for PostgreSQL 9.3.Tim Graham
Thanks Simon Charette for the introspection changes.
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-06Fixed #27693, Refs #27257 -- Fixed iexact lookup on JSONField keys.Simon Charette
Thanks Harris Lapiroff for the report.
2016-11-15Refs #27003 -- Fixed JSONField crash on converted values.Brandon Chinn
2016-09-22Fixed #27257 -- Fixed builtin text lookups on JSONField keys.Simon Charette
Thanks Nick Stefan for the report and Tim for the review.
2016-09-12Used a database feature to prevent the jsonb test model from being migrated.Simon Charette
Thanks Tim for the review.
2016-09-07Fixed #26908 -- Fixed crash with jsonfield__key__isnull lookup.Tim Graham
2016-08-25Fixed #25995 -- Added an encoder option to JSONFieldClaude Paroz
Thanks Berker Peksag and Tim Graham for the reviews.
2016-07-27Fixed #26949 -- Fixed crash of disabled forms.JSONField.Olexander Yermakov
2016-07-27Fixed #26917 -- Fixed crash in disabled ModelChoiceFields.Tim Graham
Partially reverted refs #25532 to fix a regression in Django 1.10. This reintroduces a crash for disabled forms.JSONField (refs #26949), however, that issue is also present on Django 1.9. Thanks Ryan Schave for the test.
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-06-13Fixed #26748 -- Allowed overriding JSONField's widget with an attribute.Charlie Denton
2016-04-01Fixed #25532 -- Properly redisplayed JSONField form input valuesClaude Paroz
Thanks David Szotten for the report and Tommy Beadle for code inspiration. Thanks Tim Graham for the review.
2016-02-16Fixed #26215 -- Fixed RangeField/ArrayField serialization with None valuesClaude Paroz
Also added tests for HStoreField and JSONField. Thanks Aleksey Bukin for the report and Tim Graham for the initial patch and the review.
2015-06-06Added missing tests for transforms usage with subquery for PostgreSQL fieldsAndriy Sokolovskiy
2015-05-30Name PostgreSQL correctly.Marc Tamlyn
2015-05-30Fixed #24604 -- Added JSONField to contrib.postgres.Marc Tamlyn