]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
support DeclarativeBase for versioned history example
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Mar 2023 13:48:58 +0000 (09:48 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Mar 2023 13:55:57 +0000 (09:55 -0400)
commit24dd3d8c90876a05377d04910819dcd5d25aed4e
treec679ba3965e9f522b307381ebfded9e5367582fc
parentc7ce7ff0225fe0ddaf63f0706429b885410de365
support DeclarativeBase for versioned history example

Fixed issue in "versioned history" example where using a declarative base
that is derived from :class:`_orm.DeclarativeBase` would fail to be mapped.
Additionally, repaired the given test suite so that the documented
instructions for running the example using Python unittest now work again.

Change-Id: I164a5b8dbdd01e3d815eb356f7b7cadf226ca296
References: #9546
doc/build/changelog/unreleased_20/vers_fixes.rst [new file with mode: 0644]
examples/versioned_history/__init__.py
examples/versioned_history/history_meta.py
examples/versioned_history/test_versioning.py
test/base/test_examples.py