]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
restore and test correct defaults for validates() keyword args
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 May 2023 17:12:58 +0000 (13:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 May 2023 17:22:37 +0000 (13:22 -0400)
commitdfb09c0e424370026220061bbb9f287bdea0eff3
treed60d0582ab70e179389f355403c73c43b62aab6a
parent8a6d41d5f540c5de3a73279cd729a8b197083bbf
restore and test correct defaults for validates() keyword args

Fixed regression in the 2.0 series where the default value of
:paramref:`_orm.validates.include_backrefs` got changed to ``False`` for
the :func:`_orm.validates` function. This default is now restored to
``True``.

Fixes: #9820
Change-Id: I9b7257b7c6e94c12fc894c7b78e5c1cb92acad67
doc/build/changelog/unreleased_20/9820.rst [new file with mode: 0644]
lib/sqlalchemy/orm/mapper.py
test/orm/test_validators.py