Skip to content

Commit

Permalink
Refs #34059, Refs #34060 -- Removed outdated warning about validation…
Browse files Browse the repository at this point in the history
… of JSONField constraints.

Known issues have been fixed in:
- 0d8fbe2,
- c991602, and
- 26aae56.
  • Loading branch information
felixxm authored Mar 18, 2024
1 parent 10b31ee commit 9c17010
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions docs/ref/models/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ option.
Constraints are checked during the :ref:`model validation
<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``
==================

Expand Down
11 changes: 0 additions & 11 deletions docs/ref/models/instances.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
: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)

This method calls :meth:`Model.clean_fields()`, :meth:`Model.clean()`,
Expand Down

0 comments on commit 9c17010

Please sign in to comment.