summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
AgeCommit message (Collapse)Author
2023-02-01[4.1.x] Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main.
2022-05-17Refs #32339 -- Deprecated default.html form template.David Smith
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
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 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-12-22Refs #32355 -- Bumped required psycopg2 version to 2.8.4.Mariusz Felisiak
psycopg2 2.8.4 is the first release to support Python 3.8.
2021-07-06Fixed #32776 -- Added support for Array subqueries on PostgreSQL.Hannes Ljungberg
2020-12-03Refs #27095 -- Fixed test_contained_by_including_F_object when run in reverse.Mariusz Felisiak
Tests should not rely on auto PKs. Test regression in 33403bf80f635577a18426bc99c8a65e31fd8dfa.
2020-11-27Fixed #25534, Fixed #31639 -- Added support for transform references in ↵Ian Foote
expressions. Thanks Mariusz Felisiak and Simon Charette for reviews.
2020-11-26Refs #27095 -- Allowed (non-nested) arrays containing expressions for ↵Hannes Ljungberg
ArrayField lookups.
2020-11-26Added test for ArrayField's __contains lookup with subqueries.Hannes Ljungberg
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
2020-06-24Defined output_field of Func() in ↵Simon Charette
test_grouping_by_annotations_with_array_field_param(). output_field cannot be automatically determined because the first argument passed to ARRAY_LEN is an ArrayField and the second one is an integer.
2019-12-10Fixed #31073 -- Prevented CheckboxInput.get_context() from mutating attrs.Peter Andersen
2019-11-08Fixed #24858 -- Added support for get_FOO_display() to ArrayField and ↵Hasan Ramezani
RangeFields. _get_FIELD_display() crashed when Field.choices was unhashable.
2019-11-05Fixed #30095 -- Fixed system check for RangeField/ArrayField.choices with ↵Hasan Ramezani
lists and tuples.
2019-11-01Refs #27808 -- Added test for saving nested ArrayField with nullable base field.Hasan Ramezani
2019-10-28Fixed #30907 -- Fixed SplitArrayField.has_changed() with removal of empty ↵Pavel Dedik
trailing values.
2019-10-28Refs #30907 -- Added more tests for SplitArrayField.has_changed().Pavel Dedik
2019-10-17Refs #12990 -- Moved CheckFieldDefaultMixin to the ↵sage
django.db.models.fields.mixins.
2019-08-23Fixed #30715 -- Fixed crash of ArrayField lookups on ArrayAgg annotations ↵Mariusz Felisiak
over AutoField.
2019-08-05Added tests for using ArrayField's IndexTransform/SliceTransform on ↵Mariusz Felisiak
expressions with params.
2019-07-03Fixed #30596 -- Fixed SplitArrayField.has_changed() for non-string base fields.Chason Chaffin
Thanks to Evgeniy Krysanov for the report and the idea to use to_python. Thanks to Mariusz Felisiak for the test case.
2019-04-18Refs #28762 -- Added test for aggregating over a function with ArrayField ↵Tomer Chachamu
parameters. Fixed in d87bd29c4f8dfcdf3f4a4eb8340e6770a2416fe3.
2019-04-18Refs #28767 -- Added test for annotating Value() with empty list as an ↵Mariusz Felisiak
ArrayField. Fixed in 3af695eda24b874486ee8be7e0d729761b3bdc71.
2019-02-09Fixed #29391 -- Made PostgresSimpleLookup respect Field.get_db_prep_value().Vinay Karanam
2018-11-27Adjusted code style of a few test data setup methods.Simon Charette
Thanks Mariusz for suggesting it.
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-11-27Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham
2018-07-27Fixed #28291, #24726 -- Fixed ArrayField with JSONField and RangeFields.vinay karanam
2018-04-22Refs #29131 -- Made ArrayField error messages index from 1 instead of 0.Hasan Ramezani
2018-04-07Fixed #28950 -- Fixed ArrayField.has_changed() for empty values.Vinay Karanam
2018-04-07Added tests for ArrayField.has_changed().Vinay Karanam
2018-02-10Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).Matthew Wilkes
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2017-11-01Fixed #28749 -- Added subquery support for ArrayField's __in lookup.Michał Pasternak
2017-10-20Fixed #28577 -- Added checks for ArrayField and JSONField to prevent mutable ↵Flávio Juvenal
defaults.
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-06-13Fixed #27161 -- Fixed form validation when an ArrayField's base_field has ↵Romulo Furtado
choices.
2017-04-29Fixed #28040 -- Updated SplitArrayWidget to use template-based widget rendering.Tim Graham
Thanks Preston Timmons for review.
2017-04-07Fixed #28038 -- Restored casting to text of builtin lookups on PostgreSQL.Simon Charette
Reverted 658f1e8 which broke code using __icontains's implicit cast to ::text on ArrayField. Thanks Peter J. Farrell for the report.
2017-01-14Refs #25226 -- Cloned ArrayField.base_field on deconstruction.Simon Charette
This prevents the base_field from sharing attributes with the one used during migrations.
2016-11-15Refs #27003 -- Fixed SimpleArrayField crash on converted values.Brandon Chinn
2016-09-22Fixed #27186 -- Fixed model form default fallback for MultiWidget, ↵Tim Graham
FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget. Thanks Matt Westcott for the review.
2016-09-20Added tests for ArrayField lookup errors.Tim Graham
2016-09-12Fixed #27098 -- Deprecated DatabaseIntrospection.get_indexesClaude Paroz
Thanks Akshesh <aksheshdoshi@gmail.com> for help with the PostgreSQL query. Thanks Tim Graham for the review.
2016-08-19Fixed #22288 -- Fixed F() expressions with the __range lookup.Matthew Wilkes
2016-08-11Fixed #24442 -- Improved SchemaEditor's index name truncation.Akshesh
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne