]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Make discriminator column used by ConcreteBase configurable
authorJesse Bakker <github@jessebakker.com>
Mon, 17 Aug 2020 14:35:35 +0000 (10:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Aug 2020 15:42:47 +0000 (11:42 -0400)
commitdb2b2e21d6458d29a156a8532a52425333e0317a
treeb456310331fd094075fb6723114bc80f7f1dd853
parent677f9bd309b825bd3e253954e38ba642f92fef29
Make discriminator column used by ConcreteBase configurable

The name of the virtual column used when using the
:class:`_declarative.AbstractConcreteBase` and
:class:`_declarative.ConcreteBase` classes can now be customized, to allow
for models that have a column that is actually named ``type``.  Pull
request courtesy Jesse-Bakker.

Fixes: #5513
Closes: #5514
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5514
Pull-request-sha: 5e7429f3531e2e22fffe996c9760905578d16ef9

Change-Id: I733737844d4f4e1f52dd2475a66c7044ff7292f5
doc/build/changelog/unreleased_13/5513.rst [new file with mode: 0644]
lib/sqlalchemy/ext/declarative/api.py
test/ext/declarative/test_inheritance.py