flask-sqlalchemy
flask-sqlalchemy copied to clipboard
fix: MetaMixin* accept kwargs
The Metaclass Mixin classes now accept and propagate additional keywords provided.
The name **kw has been chosen to stay consistent with SQLAlchemy.
- fixes #1002
Checklist:
- [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
- [x] Add or update relevant docs, in the docs folder and in code.
- [x] Add an entry in
CHANGES.rstsummarizing the change and linking to the issue. - [x] Add
.. versionchanged::entries in any relevant code docs. - [x] Run
pre-commithooks and fix any issues. - [ ] Run
pytestandtox, no tests failed.
The current problem is that tox fails on old versions of SQLAlchemy, where the fix wasn't introduced yet, but that is more an issue with SQLAlchemy, not with the implementation.
Fixed in #1087