]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
honor get_templates_path() first
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 May 2025 21:14:37 +0000 (17:14 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 May 2025 21:16:34 +0000 (17:16 -0400)
commita272da9a4b95170848a1cc64dbb5e3019d27c7a1
treea7c03c7afdd791f5a8ddd911217391de9a3aa3c0
parent7670b2fcf0c0666051c740107306199c77a93b7c
honor get_templates_path() first

Fixed regression caused by the ``pathlib`` refactoring that removed the use
of :meth:`.Config.get_template_directory` as the canonical source of
templates; the method is still present however it no longer would be
consulted for a custom config subclass, as was the case with flask-migrate.

Fixed regression caused by the ``pathlib`` refactoring where the "missing
template" error message failed to render the name of the template that
could not be found.

Fixes: #1659
Fixes: #1660
Change-Id: I1244f19c9f288eb52c8e9ffcc3835824d6b74bb6
alembic/command.py
alembic/config.py
docs/build/unreleased/1660.rst [new file with mode: 0644]
tests/test_command.py