| Age | Commit message (Collapse) | Author |
|
with OpClass().
This also introduces Expression.constraint_validation_compatible that
allows specifying that expression should be ignored during a constraint
validation.
|
|
|
|
Updated OrderableAggMixin.as_sql() to separate the order_by parameters
from the filter parameters. Previously, the parameters and SQL were
calculated by the Aggregate parent class, resulting in a mixture of
order_by and filter parameters.
Thanks Simon Charette for the review.
|
|
Refactored the filter and order_by expressions in the Aggregate class to
return a list of Expression (or None) values, ensuring that the list
item is always available and represents the filter expression.
For the PostgreSQL OrderableAggMixin, the returned list will always
include the filter and the order_by value as the last two elements.
Lastly, emtpy Q objects passed directly into aggregate objects using
Aggregate.filter in admin facets are filtered out when resolving the
expression to avoid errors in get_refs().
Thanks Simon Charette for the review.
|
|
ExclusionConstraint.expressions.
|
|
Forwardport of 3cc35aafabb1523c39332ee83e769b085ed3d923 from stable/5.0.x.
|
|
https://github.com/psf/black/releases/tag/24.1.0
|
|
each operation.
|
|
|
|
Co-authored-by: Priyansh Saxena <askpriyansh@gmail.com>
Co-authored-by: Niclas Olofsson <n@niclasolofsson.se>
Co-authored-by: David Smith <smithdc@gmail.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Abhinav Yadav <abhinav.sny.2002@gmail.com>
|
|
This paves the way for making OrderByList a simple shim over
ExpressionList which requires at least a single item to be provided.
|
|
Forwardport of 8e1b820fa10d16664beb5d1ca2f5671891da1704 from stable/5.0.x.
|
|
JSONField & co.
Per deprecation timeline.
|
|
django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField.
Per deprecation timeline.
|
|
Array(Min/Max)LengthValidator.
|
|
Thanks Patryk Zawadzki for the report.
Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
|
|
Forwardport of fa687719321329f4e5017b7fc1b8cadae3c63c32 from stable/4.2.x.
|
|
BaseConstraint and subclasses.
|
|
|
|
ArrayField.
Thanks Simon Charette for the review.
|
|
Available since Python 3.10 where it was reintroduced.
|
|
|
|
Per deprecation timeline.
|
|
Forward port of 6fef789e456204752ec6b77b41740d67553fdd6f from stable/4.2.x.
|
|
Updated Bulgarian, Esperanto, Hungarian, Japanese, Macedonian, Persian,
Portuguese (Brazil), Russian, Spanish, and Turkmen translations.
Forwardport of 46b28bbe151282e9198b719d00f84b48c92606ba from stable/4.1.x.
|
|
Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews.
Co-authored-by: Florian Apolloner <florian@apolloner.eu>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
|
|
|
|
__len lookup.
Regression in 88fc9e2826044110b7b22577a227f122fe9c1fb5 that began
manifesting in Django 4.1.
|
|
to JSONField & co.
JSON should be provided as literal Python objects an not in their
encoded string literal forms.
|
|
handlers on PostgreSQL.
|
|
ArrayField's __overlap lookup.
Thanks Mads Jensen and kosz85 and the initial patch.
|
|
on PostgreSQL.
|
|
values.
Thanks jerch and David Sanders for reviews.
|
|
|
|
and JSONBAgg().
Regression in e06dc4571ea9fd5723c8029959b95808be9f8812.
|
|
The latter allows for more generic use cases beyond the currently
limited ones constraints validation has.
Refs #28333, #30581.
|
|
References to excluded fields are omitted in the replacement_map, so
there is no need to replace references before checking for exclusions.
|
|
Follow up to 63884829acd207404f2a5c3cc1d6b4cd0a822b70.
|
|
Bug in 667105877e6723c6985399803a364848891513cc.
|
|
django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField.
|
|
This also fixes related i18n tests.
Forwardport of a3bab9332416f655c6ae0fa306c94f7f52e7398d from stable/4.1.x.
Co-authored-by: Claude Paroz <claude@2xlibre.net>
|
|
ArrayField(Char/TextFields).
|
|
violation_error_message.
Regression in 667105877e6723c6985399803a364848891513cc.
|
|
TrigramStrictWordDistance() on PostgreSQL.
|
|
|
|
Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews.
|
|
|
|
DateField/DateTimeField/TimeField/DurationFields.
This includes refactoring of CombinedExpression._resolve_output_field()
so it no longer uses the behavior inherited from Expression of guessing
same output type if argument types match, and instead we explicitly
define the output type of all supported operations.
This also makes nonsensical operations involving dates
(e.g. date + date) raise a FieldError, and adds support for
automatically inferring output_field for cases such as:
* date - date
* date + duration
* date - duration
* time + duration
* time - time
|
|
|