summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/fields
AgeCommit message (Collapse)Author
2017-11-29[2.0.x] Fixed #28702 -- Made query lookups for CIText fields use citext.Mads Jensen
Backport of f0a68c25118786d47041d0a435b2afa953be3c86 from master
2017-11-01[2.0.x] Fixed #28749 -- Added subquery support for ArrayField's __in lookup.Michał Pasternak
Backport of e554b72a2a5473f3f1e57a32565758757a9e8e87 from master
2017-09-13Merged isinstance() calls.Mariusz Felisiak
2017-07-20Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham
Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
2017-07-14Fixed #28394 -- Allowed setting BaseExpression.output_field (renamed from ↵Sergey Fedoseev
_output_field).
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-02-11Refs #26610 -- Added CIText mixin and CIChar/Email/TextField.Mads Jensen
2017-02-07Fixed #26903 -- Fixed __contains lookup for Date/DateTimeRangeField.Mariusz Felisiak
Thanks Mariusz Felisiak and Tim Graham for polishing the patch.
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-16Removed unneeded variable in contrib/postgres/fields/jsonb.py.Dmitry Dygalo
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.
2017-01-06Fixed #27693, Refs #27257 -- Fixed iexact lookup on JSONField keys.Simon Charette
Thanks Harris Lapiroff for the report.
2016-12-15Fixed #27582 -- Allowed HStoreField to store null values.David Hoffman
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
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-21Fixed #26610 -- Added CITextField to contrib.postgres.Mads Jensen
2016-09-20Refs #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-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-08-19Fixed #22288 -- Fixed F() expressions with the __range lookup.Matthew Wilkes
2016-05-04Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup()Claude Paroz
Thanks Tim Graham for completing the initial patch.
2016-04-03Fixed #26101 -- Allowed introspection of base_field.model in RangeFieldanna
Used the same test and fix as in #25867. This required initializing base_field in RangeField.__init__, not when setting the attribute.
2016-03-15Fixed #25579 -- Fixed ArrayField.get_db_prep_value() to allow complex types.Matt C
2016-03-12Fixed #25143 -- Added ArrayField.from_db_value().Fernando Miranda
Thanks Karan Lyons for contributing to the patch.
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.
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2016-01-29Fixed #26120 -- Made HStoreField cast keys and values to strings.Greg Chapple
HStoreField now converts all keys and values to string before they're saved to the database.
2015-12-17Fixed #25841 -- Handled base array fields validation errors with params.Simon Charette
Thanks to Trac alias benzid-wael for the report.
2015-12-17Fixed #25544 -- Removed duplicate ids in prefetch_related() queries.Ian Foote
2015-12-07Fixed #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-25Fixed #25772 -- Corrected __len lookup on ArrayField for empty arrays.Attila Tovt
2015-11-14Fixed #25666 -- Fixed the exact lookup of ArrayField.Dmitry Dygalo
2015-09-21Fixed #24629 -- Unified Transform and Expression APIsJosh Smeaton
2015-08-05Fixed #25226 -- Set the model attribute on ArrayField's base_fieldIon Scerbatiuc
2015-07-14Fixed #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-06Instead 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-06-05Fixed #24937 -- fix serialization of Date(Time)RangeField.Matthew Somerville
Use the DjangoJSONEncoder so that datetime and date are encoded appropriately.
2015-06-04Fixed #24837 -- field__contained_by=RangeMarc Tamlyn
Provide `contained_by` lookups for the equivalent single valued fields related to the range field types. This acts as the opposite direction to rangefield__contains. With thanks to schinckel for the idea and initial tests.
2015-05-30Fixed #24604 -- Added JSONField to contrib.postgres.Marc Tamlyn
2015-05-30Add HasAnyKeys lookup for HStoreField.Marc Tamlyn
2015-05-13Fixed #24751 -- Fixed HStoreField isnull lookup.Tim Graham
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi 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-20Fixed #24373 -- Added run_validators to ArrayField.Marc Tamlyn
Thanks to DavidMuller for the report.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-20Fixes #24169 -- More arrayfield specific lookups.Marc Tamlyn
varchar()[] cannot compare itself to text[] Thanks to joelburton for the patch.
2015-01-16Fixed #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.
2015-01-10Fixed #24001 -- Added range fields for PostgreSQL.Marc Tamlyn
Added support for PostgreSQL range types to contrib.postgres. - 5 new model fields - 4 new form fields - New validators - Uses psycopg2's range type implementation in python