]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix example with deprecated code 6875/head
authorJoão Sampaio <jpmelos@gmail.com>
Wed, 11 Aug 2021 14:36:49 +0000 (11:36 -0300)
committerGitHub <noreply@github.com>
Wed, 11 Aug 2021 14:36:49 +0000 (11:36 -0300)
commit9f9e0b87c074ad721cdc97222a7b6c32f8781a64
treed8b9adac080a4aee3176ba7e589346b09438bdb9
parent70a33dd32f2609f2de6421c3b28ef4cc4496fdae
Fix example with deprecated code

Just a few lines above, it is said that creating a mapping with `mapper()` is deprecated in favor of `mapper_registry.map_imperatively()`. This PR fixes an example in the documentation that still uses the old function.
doc/build/orm/mapping_styles.rst