Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/contrib/postgres
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25597 -- Fixed crash with SplitArrayField and ↵Tim Graham2015-10-271-1/+1
| | | | IntegerField on invalid 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 ↵Tim Graham2015-08-071-7/+8
| | | | | | of initial values. Thanks Simon Charette for review.
* Fixed #25226 -- Set the model attribute on ArrayField's ↵Ion Scerbatiuc2015-08-051-0/+4
| | | | base_field
* Fixed #25215 -- Solved reference to forms.HStoreField in ↵Curtis Maloney2015-08-041-1/+1
| | | | | | declaration of 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 ↵Adam Chainz2015-06-151-0/+11
| | | | contrib.postgres.functions.TransactionNow
* Instead of using DjangoJSONEncoder, use base_field's ↵Matthew Somerville2015-06-063-12/+23
| | | | | | | | | value_to_string. 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-314-0/+132
|
* Add HasAnyKeys lookup for HStoreField.Marc Tamlyn2015-05-302-12/+18
|
* Fixed #24841 -- Made BaseRangeField.prepare_value() call ↵Villiers Strauss2015-05-251-2/+9
| | | | base_field's prepare_value()
* Fixed #24844 -- Corrected has_changed implementation for ↵Andrea Grandi2015-05-241-0/+10
| | | | HStoreField.
* 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 ↵Andriy Sokolovskiy2015-03-303-0/+125
| | | | functions
* 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 ↵foresmac2015-02-201-0/+4
| | | | RangeField subclasses
* 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 ↵Ng Zhi An2015-01-221-2/+13
| | | | BaseRangeField widgets
* 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 ↵Jon Dufresne2014-12-081-1/+1
| | | | generators and dict comprehension
* Fixed #23423 -- Added unaccent lookup in ↵Thomas Chaumeny2014-11-293-0/+20
| | | | django.contrib.postgres
* Fixed #23894 -- Made deconstruct methods favor kwargs ↵Markus Holtermann2014-11-281-2/+4
| | | | over args
* Revert "Fixed #23892 -- Made deconstructible classes ↵Carl Meyer2014-11-232-3/+3
| | | | | | | | | | | forwards compatible" 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 ↵Carl Meyer2014-11-222-3/+3
| | | | compatible
* Renamed qn to compilerJosh Smeaton2014-11-162-33/+33
|
* added test and fix to check for default null on ArrayFieldDaan Vielen2014-11-151-1/+1
|
* Added HStoreField.Marc Tamlyn2014-11-0410-2/+308
| | | | | Thanks to `django-hstore` for inspiration in some areas, and many people for reviews.
* Fixed #23627 -- Allowed register_lookup to work as a ↵Marc Tamlyn2014-10-091-12/+4
| | | | decorator.
* Fixed #22962 -- Default values for ArrayField with ↵Marc Tamlyn2014-07-291-0/+8
| | | | | | | | | | migrations. Fields normally try to force the default value to a string. As translatable strings are not valid default values for ArrayField, we can remove this behaviour which was causing issues with some migrations. Thanks to @schinckel for the report.
* Fixed #22907 -- Array contains must have same type.Marc Tamlyn2014-07-151-1/+2
|
* Fixed #22819 -- Renamed output_type -> output_field in ↵Tim Graham2014-06-171-2/+2
| | | | | | query expression API. Thanks jorgecarleitao for the suggestion.
* Added array field support for PostgreSQL.Marc Tamlyn2014-05-226-0/+457
The first part of django.contrib.postgres, including model and two form fields for arrays of other data types. This commit is formed of the following work: Add shell of postgres app and test handling. First draft of array fields. Use recursive deconstruction. Stop creating classes at lookup time. Add validation and size parameter. Add contained_by lookup. Add SimpleArrayField for forms. Add SplitArrayField (mainly for admin). Fix prepare_value for SimpleArrayField. Stop using MultiValueField and MultiWidget. They don't play nice with flexible sizes. Add basics of admin integration. Missing: - Tests - Fully working js Add reference document for django.contrib.postgres.fields.ArrayField. Various performance and style tweaks. Fix internal docs link, formalise code snippets. Remove the admin code for now. It needs a better way of handing JS widgets in the admin as a whole before it is easy to write. In particular there are serious issues involving DateTimePicker when used in an array. Add a test for nested array fields with different delimiters. This will be a documented pattern so having a test for it is useful. Add docs for SimpleArrayField. Add docs for SplitArrayField. Remove admin related code for now. definition -> description Fix typo. Py3 errors. Avoid using regexes where they're not needed. Allow passing tuples by the programmer. Add some more tests for multidimensional arrays. Also fix slicing as much as it can be fixed. Simplify SplitArrayWidget's data loading. If we aren't including the variable size one, we don't need to search like this.