]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Adjust dataclass rules to account for field w/ default
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Mar 2021 19:07:03 +0000 (15:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Mar 2021 19:08:26 +0000 (15:08 -0400)
commitce2f28c37e0a2f2aa3b4a404ee190cdc00b8b918
tree29a175c6614985f630a2434532e613d459066f68
parent3fec5028e695ad138aa46a0ae66c55e8bcb653f6
Adjust dataclass rules to account for field w/ default

Fixed issue in new ORM dataclasses functionality where dataclass fields on
an abstract base or mixin that contained column or other mapping constructs
would not be mapped if they also included a "default" key within the
dataclasses.field() object.

Fixes: #6093
Change-Id: I628086ceb48ab1dd0702f239cd12be74074f58f1
doc/build/changelog/unreleased_14/6093.rst [new file with mode: 0644]
lib/sqlalchemy/orm/decl_base.py
test/orm/test_dataclasses_py3k.py