mirror of
https://github.com/django/django.git
synced 2025-01-03 15:06:09 +00:00
Known issues have been fixed in: -0d8fbe2ade
, -c991602ce5
, and -26aae56144
.
This commit is contained in:
parent
10b31eea33
commit
9c17010358
@ -34,17 +34,6 @@ option.
|
|||||||
Constraints are checked during the :ref:`model validation
|
Constraints are checked during the :ref:`model validation
|
||||||
<validating-objects>`.
|
<validating-objects>`.
|
||||||
|
|
||||||
.. admonition:: Validation of Constraints with ``JSONField``
|
|
||||||
|
|
||||||
Constraints containing :class:`~django.db.models.JSONField` may not raise
|
|
||||||
validation errors as key, index, and path transforms have many
|
|
||||||
database-specific caveats. This :ticket:`may be fully supported later
|
|
||||||
<34059>`.
|
|
||||||
|
|
||||||
You should always check that there are no log messages, in the
|
|
||||||
``django.db.models`` logger, like *"Got a database error calling check() on
|
|
||||||
…"* to confirm it's validated properly.
|
|
||||||
|
|
||||||
``BaseConstraint``
|
``BaseConstraint``
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
@ -246,17 +246,6 @@ need to call a model's :meth:`~Model.full_clean()` method if you plan to handle
|
|||||||
validation errors yourself, or if you have excluded fields from the
|
validation errors yourself, or if you have excluded fields from the
|
||||||
:class:`~django.forms.ModelForm` that require validation.
|
:class:`~django.forms.ModelForm` that require validation.
|
||||||
|
|
||||||
.. warning::
|
|
||||||
|
|
||||||
Constraints containing :class:`~django.db.models.JSONField` may not raise
|
|
||||||
validation errors as key, index, and path transforms have many
|
|
||||||
database-specific caveats. This :ticket:`may be fully supported later
|
|
||||||
<34059>`.
|
|
||||||
|
|
||||||
You should always check that there are no log messages, in the
|
|
||||||
``django.db.models`` logger, like *"Got a database error calling check() on
|
|
||||||
…"* to confirm it's validated properly.
|
|
||||||
|
|
||||||
.. method:: Model.full_clean(exclude=None, validate_unique=True, validate_constraints=True)
|
.. method:: Model.full_clean(exclude=None, validate_unique=True, validate_constraints=True)
|
||||||
|
|
||||||
This method calls :meth:`Model.clean_fields()`, :meth:`Model.clean()`,
|
This method calls :meth:`Model.clean_fields()`, :meth:`Model.clean()`,
|
||||||
|
Loading…
Reference in New Issue
Block a user