| Age | Commit message (Collapse) | Author |
|
Backport of 2d8dcba03aae200aaa103ec1e69f0a0038ec2f85 from master
|
|
__contained_by lookups on SQLite.
The current implementation works only for basic examples without
supporting nested structures and doesn't follow "the general principle
that the contained object must match the containing object as to
structure and data contents, possibly after discarding some
non-matching array elements or object key/value pairs from the
containing object".
Backport of ba691933cee375195c9c50f333dd4b2a3abbb726 from master.
|
|
Oracle.
The current implementation works only for basic examples without
supporting nested structures and doesn't follow "the general principle
that the contained object must match the containing object as to
structure and data contents, possibly after discarding some
non-matching array elements or object key/value pairs from the
containing object".
Backport of 02447fb133b53ec7d0ff068cc08f06fdf8817ef7 from master
|
|
with mixed case label.
Regression in 9e1b6b8a66af4c2197e5b1b41eb9dbb36e4f6502.
Thanks Ignacio Santolin for the report.
Backport of 62d85a283500e9abb0e1c9ec53c59be468f056a0 from master
|
|
invalid values.
Backport of 38a21f2d9ed4f556af934498ec6a242f6a20418a from master
|
|
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>
|
|
|
|
BooleanField(null=True).
|
|
|
|
changes.
Made autodetector ignore related model name case changes so unnecessary
migrations are not created.
|
|
ambiguous foreign key.
symmetrical=False is not required since
87b1ad6e7351464c60e751b483d9dfce3a2d3382.
|
|
checks when using Meta.constraints.
|
|
Follow up to 0b83c8cc4db95812f1e15ca19d78614e94cf38dd.
|
|
Improved error message for remove() and added tests.
|
|
collision when database routers are installed.
Turned the error into a warning when database routers are installed.
|
|
for fields with blank=False.
|
|
|
|
ForeignKey.to_field.
Thanks Simon Charette for the initial patch and review.
|
|
|
|
choices.
Regression in 2d38eb0ab9f78d68c083a5b78b1eca39027b279a
|
|
group contains only non-string values.
Regression in b6251956b69512bf230322bd7a49b629ca8455c6.
Thanks Murat Guchetl for the report.
|
|
ImageField.
|
|
with an invalid type.
|
|
callable values in through_defaults.
|
|
Added early return in RelatedManager._add_items() to decrease an
indentation level.
|
|
invalid type.
This was an issue anymore on backends that allows conflicts to be
ignored (Refs #19544) as long the provided values were coercible to the
expected type. However on the remaining backends that don't support
this feature, namely Oracle, this could still result in an
IntegrityError.
By attempting to coerce the provided values to the expected types in
Python beforehand we allow the existing value set intersection in
ManyRelatedManager._get_missing_target_ids to prevent the problematic
insertion attempts.
Thanks Baptiste Mispelon for triaging this old ticket against the
current state of the master branch.
|
|
|
|
This allows fields classes to override the validation of choices'
values.
|
|
Thanks Sergey Fedoseev for the implementation idea.
Regression in a68ea231012434b522ce45c513d84add516afa60.
|
|
Using an internal is_value() hook to check whether Field.choices
is iterable is misleading.
|
|
relationships.
|
|
Added internal interface to QuerySet that allows to defer next filter
call till .query is accessed. Used it to optimize prefetch_related().
Thanks Simon Charette for the review.
|
|
django.db.models.fields.mixins.
|
|
EmptyResultSet moved in 46509cf13dbf049f75077981c29ef2c60b5a96ab.
FieldDoesNotExist moved in 8958170755b37ce346ae5257c1000bd936faa3b0.
BoundField and pretty_name moved in 8550161e531a603d57723850fb09c4c9b7ca60b9.
EMPTY_VALUES moved in 471596fc1afcb9c6258d317c619eaf5fd394e797.
BaseRunserverCommand moved in 5c53e30607014163872e89c221b206992a9acfef.
|
|
PostgreSQL.
Thanks Florian Apolloner, Tim Graham, Simon Charette, Nick Pope, and
Mariusz Felisiak for reviews.
|
|
choice.
|
|
Expressions should never be prepared as other Lookup.get_prep_lookup
implementations hint at by returning early on the presence of the
resolve_expression attribute.
The previous solution was only handling lookups against related fields
pointing at AutoFields and would break for foreign keys to other fields.
It was also causing bidirectional coupling between model fields and
expressions which the method level import of OuterRef was a symptom of.
|
|
and refactored AutoFields.
This reduces duplication by allowing AutoField, BigAutoField and
SmallAutoField to inherit from IntegerField, BigIntegerField and
SmallIntegerField respectively. Doing so also allows for enabling the
max_length warning check and minimum/maximum value validation for auto
fields, as well as providing a mixin that can be used for other possible
future auto field types such as a theoretical UUIDAutoField.
|
|
|
|
respect model's Meta.ordering.
Regression in 6d4e5feb79f7eabe8a0c7c4b87f25b1a7f87ca0b.
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
|
|
AutoField/FloatField/IntegerField values.
Co-authored-by: Diederik van der Boor <vdboor@edoburu.nl>
Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
|
|
|
|
using attnames.
Regression in 519016e5f25d7c0a040015724f9920581551cab0.
|
|
descriptor_class attribute.
Allows model fields to override the descriptor class used on the model
instance attribute.
|
|
instead of a field name.
|
|
Thanks Claude Paroz for assistance with translations.
|
|
ManyToManyField.
|
|
Thanks Erwin Junge for the initial patch.
|
|
OneToOneField.
|