summaryrefslogtreecommitdiff
path: root/django/contrib/postgres
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #26120 -- Made HStoreField cast keys and values to strings.Greg Chapple2016-01-291-0/+17
| | | | | HStoreField now converts all keys and values to string before they're saved to the database.
* Fixed #26125 -- Fixed E731 flake warnings.userimack2016-01-251-2/+4
|
* Replaced dict.setdefault() usage to avoid unnecessary object instantiations.Benjamin Bach2016-01-051-2/+4
|
* Updated translations from TransifexClaude Paroz2015-12-318-23/+144
| | | | Forward port of 59f3590ca7 from stable/1.9.x.
* Fixed #25841 -- Handled base array fields validation errors with params.Simon Charette2015-12-173-43/+81
| | | | Thanks to Trac alias benzid-wael for the report.
* Fixed #25544 -- Removed duplicate ids in prefetch_related() queries.Ian Foote2015-12-171-1/+10
|
* Fixed #25867 -- Fixed a system check crash with nested ArrayFields.Simon Charette2015-12-071-3/+11
| | | | Thanks to Jean Gourds for the report, Tim and Claude for the review.
* Pulled contrib translations from TransifexClaude Paroz2015-12-0174-171/+1677
| | | | Forward port of 6a4649c27e6 from stable/1.9.x
* Fixed #25772 -- Corrected __len lookup on ArrayField for empty arrays.Attila Tovt2015-11-251-1/+5
|
* Fixed #25666 -- Fixed the exact lookup of ArrayField.Dmitry Dygalo2015-11-141-3/+12
|
* Fixed #25597 -- Fixed crash with SplitArrayField and IntegerField on invalid ↵Tim Graham2015-10-271-1/+1
| | | | value.
* Updated translation catalogsClaude Paroz2015-10-091-7/+20
| | | | Forward port of f717cb2ab4 from stable/1.9.x.
* Fixed #24629 -- Unified Transform and Expression APIsJosh Smeaton2015-09-213-12/+6
|
* Fixed #25233 -- Fixed HStoreField.has_changed() handling of initial values.Tim Graham2015-08-071-7/+8
| | | | Thanks Simon Charette for review.
* Fixed #25226 -- Set the model attribute on ArrayField's base_fieldIon Scerbatiuc2015-08-051-0/+4
|
* Fixed #25215 -- Solved reference to forms.HStoreField in declaration of ↵Curtis Maloney2015-08-041-1/+1
| | | | | | HStoreField Correct test which was using the model field in a test form.
* Fixed #24716 -- Deprecated Field._get_val_from_obj()Thomas Stephenson2015-07-144-5/+4
| | | | | | The method duplicates the functionality of Field.value_from_object() and has the additional downside of being a privately named public API method.
* Fixed #24894 -- Added contrib.postgres.functions.TransactionNowAdam Chainz2015-06-151-0/+11
|
* Instead of using DjangoJSONEncoder, use base_field's value_to_string.Matthew Somerville2015-06-063-12/+23
| | | | | | | 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).
* Fixed #24937 -- fix serialization of Date(Time)RangeField.Matthew Somerville2015-06-051-1/+2
| | | | | Use the DjangoJSONEncoder so that datetime and date are encoded appropriately.
* Fixed #24837 -- field__contained_by=RangeMarc Tamlyn2015-06-041-0/+32
| | | | | | | | 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.
* Fixed #24604 -- Added JSONField to contrib.postgres.Marc Tamlyn2015-05-304-0/+132
|
* Add HasAnyKeys lookup for HStoreField.Marc Tamlyn2015-05-302-12/+18
|
* Fixed #24841 -- Made BaseRangeField.prepare_value() call base_field's ↵Villiers Strauss2015-05-251-2/+9
| | | | prepare_value()
* Fixed #24844 -- Corrected has_changed implementation for HStoreField.Andrea Grandi2015-05-241-0/+10
|
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-1/+1
|
* Fixed #24751 -- Fixed HStoreField isnull lookup.Tim Graham2015-05-131-1/+1
|
* Updated translations from TransifexClaude Paroz2015-04-302-4/+4
| | | | | Updates for languages: Indonesian, Belarusian, Persian, and Dutch. Forward port of cb370f8510 from stable/1.8.x
* Stopped special-casing postgres-specific testsClaude Paroz2015-04-181-0/+2
| | | | Refs #23879.
* Fetched updated contrib translations from TransifexClaude Paroz2015-04-0154-0/+2788
| | | | Forward port of 5483c66f85 from stable/1.8.x
* Fixed #24301 -- Added PostgreSQL-specific aggregate functionsAndriy Sokolovskiy2015-03-303-0/+125
|
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-1/+1
| | | | | | | | 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.
* Updated translation catalogsClaude Paroz2015-03-181-7/+23
| | | | | Strings are frozen in anticipation of the Django 1.8 release. Forward port of 1cd2584c980 from stable/1.8.x
* Fixed #24341 -- Added specific error messages to RangeField subclassesforesmac2015-02-201-0/+4
|
* Fixed #24373 -- Added run_validators to ArrayField.Marc Tamlyn2015-02-201-0/+12
| | | | Thanks to DavidMuller for the report.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-068-20/+17
|
* Fixed #24170 -- Implemented decompress for BaseRangeField widgetsNg Zhi An2015-01-221-2/+13
|
* Fixes #24169 -- More arrayfield specific lookups.Marc Tamlyn2015-01-201-2/+14
| | | | | | varchar()[] cannot compare itself to text[] Thanks to joelburton for the patch.
* Fixed header of contrib.postgres translation catalogClaude Paroz2015-01-191-10/+7
|
* Added contrib.postgres translation catalogClaude Paroz2015-01-182-0/+98
| | | | Forward port of 8c8a1a084 from stable/1.8.x.
* Fixed #24092 -- Widened base field support for ArrayField.Marc Tamlyn2015-01-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed #24001 -- Added range fields for PostgreSQL.Marc Tamlyn2015-01-105-1/+241
| | | | | | | | | 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
* Move % addition to lookups, refactor postgres lookups.Marc Tamlyn2015-01-103-98/+54
| | | | | | These refactorings making overriding some text based lookup names on other fields (specifically `contains`) much cleaner. It also removes a bunch of duplication in the contrib.postgres lookups.
* Fixed #24034 -- Don't always overwrite deconstruct path.Jernej Kos2014-12-211-1/+2
| | | | | | Made deconstruct path overwriting for ArrayField conditional, so it only occurs when the deconstructed field is an instance of ArrayField itself and not a subclass.
* Remove text-mangling of default values.Marc Tamlyn2014-12-091-8/+0
|
* Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne2014-12-081-1/+1
| | | | comprehension
* Fixed #23423 -- Added unaccent lookup in django.contrib.postgresThomas Chaumeny2014-11-283-0/+20
|
* Fixed #23894 -- Made deconstruct methods favor kwargs over argsMarkus Holtermann2014-11-281-2/+4
|
* Revert "Fixed #23892 -- Made deconstructible classes forwards compatible"Carl Meyer2014-11-222-3/+3
| | | | | | | | | This reverts commit f36151ed169813f2873e13ca9de616cfa4095321. Adding kwargs to deconstructed objects does not achieve useful forward-compatibility in general, since additional arguments are silently dropped rather than having their intended effect. In fact, it can make the failure more difficult to diagnose. Thanks Shai Berger for discussion.
* Fixed #23892 -- Made deconstructible classes forwards compatibleCarl Meyer2014-11-222-3/+3
|