summaryrefslogtreecommitdiff
path: root/django/contrib/postgres
AgeCommit message (Collapse)Author
2020-08-01[3.1.x] Updated translations from TransifexClaude Paroz
Backport of 1a60838fa688d3c1e245ebe4cfe7038ccd67ae3b from master
2020-05-11Updated source translation catalogs.Claude Paroz
2020-05-08Fixed #12990, Refs #27694 -- Added JSONField model field.sage
Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-05-01Fixed #31455 -- Added support for deferrable exclusion constraints on ↵Ian Foote
PostgreSQL.
2020-04-28Changed django.forms.ValidationError imports to ↵François Freitag
django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-01Refs #12990 -- Moved PostgresSimpleLookup to the ↵Mariusz Felisiak
django.db.models.lookups.PostgresOperatorLookup.
2020-03-23Fixed #28194 -- Added support for normalization and cover density to SearchRank.Hannes Ljungberg
2020-03-16Fixed #31340 -- Allowed query expressions in SearchQuery.value and __search ↵Baptiste Mispelon
lookup.
2020-03-13Refs #31340 -- Simplified SearchQuery by making it subclass Func.Baptiste Mispelon
2020-03-13Removed unnecessary SearchQuery._combine().Baptiste Mispelon
Unnecessary since its introduction in 2d877da85526bad0dad7fd6b1d56b1f924c0116a.
2020-03-09Fixed #31347 -- Checked allow_migrate() in CreateExtension operation.Hasan Ramezani
2020-03-06Refs #31304 -- Made __search lookup default to its rhs' config.Simon Charette
This make the SearchLookup lookup more coherent with its SearchVectorExact base which configures its rhs SearchQuery with its lhs' config.
2020-03-03Fixed #31147 -- Added SearchHeadline to django.contrib.postgres.Hannes Ljungberg
2020-02-26Simplified handling of weights in SearchRank.Simon Charette
2020-02-26Formalized SearchVector and SearchRank signatures.Simon Charette
2020-02-26Refs #31211 -- Prevented SearchConfig nesting in SearchVector and ↵Simon Charette
SearchQuery init. Passing a SearchConfig instance directly to SearchVector and SearchQuery would result in nested SearchConfig instance.
2020-02-26Refs #3254 -- Removed unnecessary truth check in SearchVectorExact.as_sql().Simon Charette
Direct usage of the @@ operator is perfectly allowed.
2020-02-06Fixed #28528 -- Allowed combining SearchVectors with different configs.adamb70
2020-02-04Simplified imports from django.db and django.contrib.gis.db.Nick Pope
2020-02-03Fixed CVE-2020-7471 -- Properly escaped StringAgg(delimiter) parameter.Simon Charette
2020-01-31Updated translations from Transifex.Claude Paroz
Forwardport of ca4f87027e2ed32cb272a1823c9ce4104b02d830 from stable/3.0.x
2020-01-29Fixed #31211 -- Added SearchConfig expression.Hannes Ljungberg
Thanks Simon Charette for the review.
2020-01-27Improved SearchVectorCombinable and SearchQueryCombinable error messages.Hannes Ljungberg
2019-12-31Fixed #31097 -- Fixed crash of ArrayAgg and StringAgg with filter when used ↵David Wobrock
in Subquery.
2019-12-16Fixed #31088 -- Added support for websearch searching in SearchQuery.James Turk
2019-12-05Fixed #31039 -- Added support for contained_by lookup with AutoFields, ↵Hasan Ramezani
SmallIntegerField, and DecimalField.
2019-12-05Refs #31039 -- Removed unnecessary registration of contained_by lookup for ↵Hasan Ramezani
BigIntegerField. It's already registered for IntegerField.
2019-12-02Updated contrib translations from Transifex.Carlton Gibson
Forward port of 4afa0e5d2a7c723a11d06434706810224651c50b from stable/3.0.x
2019-11-21Refs #11964 -- Removed SimpleCol in favor of Query(alias_cols).Simon Charette
This prevent having to pass simple_col through multiple function calls by defining whether or not references should be resolved with aliases at the Query level.
2019-11-14Fixed #29916 -- Added lower_inc, lower_inf, upper_inc, and upper_inf lookups ↵Dulmandakh
for RangeFields. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-11-07Fixed #30943 -- Added BloomIndex to django.contrib.postgres.Nick Pope
2019-11-05Fixed #30095 -- Fixed system check for RangeField/ArrayField.choices with ↵Hasan Ramezani
lists and tuples.
2019-10-28Fixed #30907 -- Fixed SplitArrayField.has_changed() with removal of empty ↵Pavel Dedik
trailing values.
2019-10-28Refs #30907 -- Added SplitArrayField._remove_trailing_nulls() hook.Pavel Dedik
2019-10-17Refs #12990 -- Moved CheckFieldDefaultMixin to the ↵sage
django.db.models.fields.mixins.
2019-10-11Fixed #30826 -- Fixed crash of many JSONField lookups when one hand side is ↵Louise Grandjonc
key transform. Regression in 6c3dfba89215fc56fc27ef61829a6fff88be4abb.
2019-10-01Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ElizabethU
implemented comparisons. Changed __eq__ to return NotImplemented instead of False if compared to an object of the same type, as is recommended by the Python data model reference. Now these models can be compared to ANY (or other objects with __eq__ overwritten) without returning False automatically.
2019-09-17Fixed #30758 -- Made RangeFields use multiple hidden inputs for initial data.Nasir Hussain
2019-09-16Fixed #30769 -- Fixed a crash when filtering against a subquery ↵Simon Charette
JSON/HStoreField annotation. This was a regression introduced by 7deeabc7c7526786df6894429ce89a9c4b614086 to address CVE-2019-14234. Thanks Tim Kleinschmidt for the report and Mariusz for the tests.
2019-09-10Refs #29598 -- Removed FloatRangeField per deprecation timeline.Mariusz Felisiak
2019-09-08Updated translation catalogsClaude Paroz
2019-08-23Fixed #30715 -- Fixed crash of ArrayField lookups on ArrayAgg annotations ↵Mariusz Felisiak
over AutoField.
2019-08-23Reduced code duplication in ArrayField's lookups.Mariusz Felisiak
2019-08-21Fixed #21039 -- Added AddIndexConcurrently/RemoveIndexConcurrently ↵Mads Jensen
operations for PostgreSQL. Thanks to Simon Charettes for review. Co-Authored-By: Daniel Tao <daniel.tao@gmail.com>
2019-08-14Fixed #30672 -- Fixed crash of JSONField/HStoreField key transforms on ↵Mariusz Felisiak
expressions with params. Regression in 4f5b58f5cd3c57fee9972ab074f8dc6895d8f387. Thanks Florian Apolloner for the report and helping with tests.
2019-08-13Fixed #30704 -- Fixed crash of JSONField nested key and index transforms on ↵Mariusz Felisiak
expressions with params. Thanks Florian Apolloner for the report and helping with tests.
2019-08-08Removed unnecessary StatAggregate.resolve_expression().Jon Dufresne
This method only calls the parent method, but without the for_save argument. The parent class, Aggregate, already ignores the for_save argument so there is no need for special handling. Unnecessary since its introduction in e4cf8c8420634d6f2dc8ce873246256ce635972d.
2019-08-05Moved indexes in ArrayField's Index and Slice transforms to SQL params.Mariusz Felisiak
Follow up to 7deeabc7c7526786df6894429ce89a9c4b614086. These lookups aren't vulnerable to SQL injection because both accept only integer indexes. It is a part of good practices.
2019-08-01Fixed CVE-2019-14234 -- Protected JSONField/HStoreField key and index ↵Mariusz Felisiak
lookups against SQL injection. Thanks to Sage M. Abdullah for the report and initial patch. Thanks Florian Apolloner for reviews.
2019-07-16Fixed #29824 -- Added support for database exclusion constraints on PostgreSQL.Mads Jensen
Thanks to Nick Pope and Mariusz Felisiak for review. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>