1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #33724 -- Doc'd exclude argument changes in model validation.

Thanks אורי for the report.

Follow up to 1ea7e3157d.
This commit is contained in:
Mariusz Felisiak
2022-05-24 10:02:53 +02:00
committed by GitHub
parent 241fe59b74
commit 90aabd730a
2 changed files with 18 additions and 8 deletions

View File

@@ -561,6 +561,12 @@ Miscellaneous
``URLResolver._callback_strs``, and ``URLPattern.lookup_str()`` are
moved to ``django.contrib.admindocs.utils``.
* The :meth:`.Model.full_clean` method now converts an ``exclude`` value to the
``set``. Its also preferable to pass an ``exclude`` value as a ``set`` to
the :meth:`.Model.clean_fields`, :meth:`.Model.full_clean`,
:meth:`.Model.validate_unique`, and :meth:`.Model.validate_constraints`
methods.
.. _deprecated-features-4.1:
Features deprecated in 4.1