summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/models.py
AgeCommit message (Collapse)Author
2018-10-02Fixed #29598 -- Deprecated FloatRangeField in favor of DecimalRangeField.Stefano Chiodino
2018-09-18Fixed #23646 -- Added QuerySet.bulk_update() to efficiently update many models.Tom Forbes
2018-07-27Fixed #28291, #24726 -- Fixed ArrayField with JSONField and RangeFields.vinay karanam
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2017-10-20Fixed #28577 -- Added checks for ArrayField and JSONField to prevent mutable ↵Flávio Juvenal
defaults.
2017-09-27Fixed #28626 -- Dropped support for PostgreSQL 9.3.Tim Graham
Thanks Simon Charette for the introspection changes.
2017-07-20Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham
Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
2017-05-04Fixed #28161 -- Fixed return type of ArrayField(CITextField()).Simon Charette
Thanks Tim for the review.
2017-05-03Added a test for ArrayField(HStoreField()).Simon Charette
2017-04-25Fixed #27996 -- Added RandomUUID function and CryptoExtension to ↵Paolo Melchiorre
contrib.postgres.
2017-02-11Refs #26610 -- Added CIText mixin and CIChar/Email/TextField.Mads Jensen
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
2016-09-22Fixed #27186 -- Fixed model form default fallback for MultiWidget, ↵Tim Graham
FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget. Thanks Matt Westcott for the review.
2016-09-21Fixed #26610 -- Added CITextField to contrib.postgres.Mads Jensen
2016-09-12Used a database feature to prevent the jsonb test model from being migrated.Simon Charette
Thanks Tim for the review.
2016-08-25Fixed #25995 -- Added an encoder option to JSONFieldClaude Paroz
Thanks Berker Peksag and Tim Graham for the reviews.
2016-04-22Refs #3254 -- Added full text search to contrib.postgres.Marc Tamlyn
Adds a reasonably feature complete implementation of full text search using the built in PostgreSQL engine. It uses public APIs from Expression and Lookup. With thanks to Tim Graham, Simon Charettes, Josh Smeaton, Mikey Ariel and many others for their advice and review. Particular thanks also go to the supporters of the contrib.postgres kickstarter.
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-12Refs #25979 -- Dropped compatiblity for running tests on PostgreSQL < 9.2.Tim Graham
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-06-15Fixed #24894 -- Added contrib.postgres.functions.TransactionNowAdam Chainz
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-04-18Stopped special-casing postgres-specific testsClaude Paroz
Refs #23879.
2015-03-30Fixed #24301 -- Added PostgreSQL-specific aggregate functionsAndriy Sokolovskiy
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
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
2014-12-21Fixed #24034 -- Don't always overwrite deconstruct path.Jernej Kos
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.
2014-11-28Fixed #23423 -- Added unaccent lookup in django.contrib.postgresThomas Chaumeny
2014-11-04Added HStoreField.Marc Tamlyn
Thanks to `django-hstore` for inspiration in some areas, and many people for reviews.
2014-05-22Added array field support for PostgreSQL.Marc Tamlyn
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.