Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/postgres_tests/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-2/+2
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #24894 -- Added ↵Adam Chainz2015-06-151-0/+4
| | | | contrib.postgres.functions.TransactionNow
* Fixed #24837 -- field__contained_by=RangeMarc Tamlyn2015-06-041-0/+12
| | | | | | | | 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-311-2/+12
|
* Stopped special-casing postgres-specific testsClaude Paroz2015-04-181-10/+17
| | | | Refs #23879.
* Fixed #24301 -- Added PostgreSQL-specific aggregate ↵Andriy Sokolovskiy2015-03-301-0/+18
| | | | functions
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+2
|
* Fixed #24092 -- Widened base field support for ArrayField.Marc Tamlyn2015-01-161-1/+9
| | | | | | | | | | | | | | | | | | | | | | 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-101-2/+19
| | | | | | | | | 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
* Fixed #24034 -- Don't always overwrite deconstruct path.Jernej Kos2014-12-211-0/+5
| | | | | | 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.
* Fixed #23423 -- Added unaccent lookup in ↵Thomas Chaumeny2014-11-291-0/+8
| | | | django.contrib.postgres
* Added HStoreField.Marc Tamlyn2014-11-041-1/+5
| | | | | Thanks to `django-hstore` for inspiration in some areas, and many people for reviews.
* Added array field support for PostgreSQL.Marc Tamlyn2014-05-221-0/+22
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.