Fixed #31046 -- Allowed RelatedManager.add()/create()/set() to accept callable values in through_defaults.

This commit is contained in:
Baptiste Mispelon 2019-11-29 17:54:03 +01:00 committed by Mariusz Felisiak
parent c50839fccf
commit 26cab4e8c1
4 changed files with 71 additions and 4 deletions

View file

@ -209,6 +209,10 @@ Models
* :attr:`.CheckConstraint.check` now supports boolean expressions.
* The :meth:`.RelatedManager.add`, :meth:`~.RelatedManager.create`, and
:meth:`~.RelatedManager.set` methods now accept callables as values in the
``through_defaults`` argument.
Pagination
~~~~~~~~~~