| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-02-07 | [4.2.x] Fixed #34285 -- Fixed index/slice lookups on filtered aggregates ↵ | Nils VAN ZUIJLEN | |
| with ArrayField. Thanks Simon Charette for the review. Backport of ae1fe72e9b1f5fe3b05e5b670bd0c205cd305e71 from main | |||
| 2022-12-15 | Fixed #33308 -- Added support for psycopg version 3. | Daniele Varrazzo | |
| Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-12-10 | Fixed #34205 -- Fixed Meta.constraints validation crash with ArrayField and ↵ | James Gillard | |
| __len lookup. Regression in 88fc9e2826044110b7b22577a227f122fe9c1fb5 that began manifesting in Django 4.1. | |||
| 2022-11-03 | Fixed #34080 -- Fixed __exact lookup when nested arrays contain only NULL ↵ | Ion Alberdi | |
| values. Thanks jerch and David Sanders for reviews. | |||
| 2022-08-03 | Fixed #33872 -- Deprecated ↵ | Mariusz Felisiak | |
| django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField. | |||
| 2022-08-02 | Fixed #33881 -- Added support for database collations to ↵ | Mariusz Felisiak | |
| ArrayField(Char/TextFields). | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2020-11-26 | Refs #27095 -- Allowed (non-nested) arrays containing expressions for ↵ | Hannes Ljungberg | |
| ArrayField lookups. | |||
| 2019-11-05 | Fixed #30095 -- Fixed system check for RangeField/ArrayField.choices with ↵ | Hasan Ramezani | |
| lists and tuples. | |||
| 2019-10-17 | Refs #12990 -- Moved CheckFieldDefaultMixin to the ↵ | sage | |
| django.db.models.fields.mixins. | |||
| 2019-08-23 | Fixed #30715 -- Fixed crash of ArrayField lookups on ArrayAgg annotations ↵ | Mariusz Felisiak | |
| over AutoField. | |||
| 2019-08-23 | Reduced code duplication in ArrayField's lookups. | Mariusz Felisiak | |
| 2019-08-05 | Moved indexes in ArrayField's Index and Slice transforms to SQL params. | Mariusz Felisiak | |
| Follow up to 7deeabc7c7526786df6894429ce89a9c4b614086. These lookups aren't vulnerable to SQL injection because both accept only integer indexes. It is a part of good practices. | |||
| 2019-03-21 | Removed obsolete Lookup hook to prepare rhs expressions. | Simon Charette | |
| After 3a505c70e7b228bf1212c067a8f38271ca86ce09, all _prepare() methods return self. | |||
| 2019-03-03 | Reverted "Fixed relative paths imports per isort 4.3.5." | Mariusz Felisiak | |
| This reverts commit 463fe11bc8b2d068e447c5df677e7a31c2af7e03 due to restore of relative paths sorting from isort < 4.3.5 in isort 4.3.10. | |||
| 2019-02-25 | Fixed relative paths imports per isort 4.3.5. | Mariusz Felisiak | |
| 2019-01-17 | Refs #28370 -- Removed support for the context arg of Field.from_db_value() ↵ | Tim Graham | |
| and Expression.convert_value(). Per deprecation timeline. | |||
| 2018-09-28 | Refs #28909 -- Simplifed code using unpacking generalizations. | Sergey Fedoseev | |
| 2018-07-27 | Fixed #28291, #24726 -- Fixed ArrayField with JSONField and RangeFields. | vinay karanam | |
| 2018-05-13 | Refs #29131 -- Fixed space handling in ArrayField's item_invalid message. | Hasan Ramezani | |
| 2018-04-22 | Refs #29131 -- Made ArrayField error messages index from 1 instead of 0. | Hasan Ramezani | |
| 2017-12-11 | Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking. | Nick Pope | |
| 2017-11-01 | Fixed #28749 -- Added subquery support for ArrayField's __in lookup. | Michał Pasternak | |
| 2017-10-20 | Fixed #28577 -- Added checks for ArrayField and JSONField to prevent mutable ↵ | Flávio Juvenal | |
| defaults. | |||
| 2017-09-13 | Merged isinstance() calls. | Mariusz Felisiak | |
| 2017-07-20 | Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵ | Tim Graham | |
| Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa. | |||
| 2017-02-07 | Converted usage of ugettext* functions to their gettext* aliases | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-19 | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | |
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2017-01-14 | Refs #25226 -- Cloned ArrayField.base_field on deconstruction. | Simon Charette | |
| This prevents the base_field from sharing attributes with the one used during migrations. | |||
| 2016-09-20 | Refs #27025 -- Fixed ArrayField querying on Python 3.6. | Tim Graham | |
| Python 3.6 parses strings like '0_1' as numeric literals. http://bugs.python.org/issue26331 | |||
| 2016-08-19 | Fixed #22288 -- Fixed F() expressions with the __range lookup. | Matthew Wilkes | |
| 2016-03-15 | Fixed #25579 -- Fixed ArrayField.get_db_prep_value() to allow complex types. | Matt C | |
| 2016-03-12 | Fixed #25143 -- Added ArrayField.from_db_value(). | Fernando Miranda | |
| Thanks Karan Lyons for contributing to the patch. | |||
| 2016-02-16 | Fixed #26215 -- Fixed RangeField/ArrayField serialization with None values | Claude Paroz | |
| Also added tests for HStoreField and JSONField. Thanks Aleksey Bukin for the report and Tim Graham for the initial patch and the review. | |||
| 2016-02-12 | Removed unneeded hint=None/obj=None in system check messages. | Tim Graham | |
| 2015-12-17 | Fixed #25841 -- Handled base array fields validation errors with params. | Simon Charette | |
| Thanks to Trac alias benzid-wael for the report. | |||
| 2015-12-17 | Fixed #25544 -- Removed duplicate ids in prefetch_related() queries. | Ian Foote | |
| 2015-12-07 | Fixed #25867 -- Fixed a system check crash with nested ArrayFields. | Simon Charette | |
| Thanks to Jean Gourds for the report, Tim and Claude for the review. | |||
| 2015-11-25 | Fixed #25772 -- Corrected __len lookup on ArrayField for empty arrays. | Attila Tovt | |
| 2015-11-14 | Fixed #25666 -- Fixed the exact lookup of ArrayField. | Dmitry Dygalo | |
| 2015-08-05 | Fixed #25226 -- Set the model attribute on ArrayField's base_field | Ion Scerbatiuc | |
| 2015-07-14 | Fixed #24716 -- Deprecated Field._get_val_from_obj() | Thomas Stephenson | |
| The method duplicates the functionality of Field.value_from_object() and has the additional downside of being a privately named public API method. | |||
| 2015-06-06 | Instead of using DjangoJSONEncoder, use base_field's value_to_string. | Matthew Somerville | |
| Note this means the serialization of e.g. IntegerRangeField now has strings for lower and upper, so use to_python when they came back in (same behaviour as ArrayField, hopefully, from where I also got the set_attributes_from_name function). | |||
| 2015-03-25 | Renamed Field.rel attribute to remote_field | Anssi Kääriäinen | |
| Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True. | |||
| 2015-02-20 | Fixed #24373 -- Added run_validators to ArrayField. | Marc Tamlyn | |
| Thanks to DavidMuller for the report. | |||
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2015-01-20 | Fixes #24169 -- More arrayfield specific lookups. | Marc Tamlyn | |
| varchar()[] cannot compare itself to text[] Thanks to joelburton for the patch. | |||
| 2015-01-16 | Fixed #24092 -- Widened base field support for ArrayField. | Marc Tamlyn | |
| Several issues resolved here, following from a report that a base_field of GenericIpAddressField was failing. We were using get_prep_value instead of get_db_prep_value in ArrayField which was bypassing any extra modifications to the value being made in the base field's get_db_prep_value. Changing this broke datetime support, so the postgres backend has gained the relevant operation methods to send dates/times/datetimes directly to the db backend instead of casting them to strings. Similarly, a new database feature has been added allowing the uuid to be passed directly to the backend, as we do with timedeltas. On the other side, psycopg2 expects an Inet() instance for IP address fields, so we add a value_to_db_ipaddress method to wrap the strings on postgres. We also have to manually add a database adapter to psycopg2, as we do not wish to use the built in adapter which would turn everything into Inet() instances. Thanks to smclenithan for the report. | |||
