]> 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:43:45 +0000 (11:43 -0400)
commit584bcfa6c2c0de82f9d55532fdc5a4890cb3ac5e
tree70969e42da096f270d02815b91640c8ae2dab7cb
parent438a19d0d0770485bc53b91d92e094d35f2058c1
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
(cherry picked from commit db2b2e21d6458d29a156a8532a52425333e0317a)
doc/build/changelog/unreleased_13/5513.rst [new file with mode: 0644]
lib/sqlalchemy/ext/declarative/api.py
test/ext/declarative/test_inheritance.py