]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Rework synonym, synonym_for documentation
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Jan 2018 23:03:04 +0000 (18:03 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Jan 2018 23:04:06 +0000 (18:04 -0500)
commitfda207bb1df3d70e5ded306573c665f1f3c63a47
tree2c1fab9e5e31e0271d7c57508bed92b67663215d
parentc0d2d9b8bda7d8abd3af74fa51defdc30cb06725
Rework synonym, synonym_for documentation

The map_column example was incorrect, and overall the purpose
of this parameter as well as that of synonym_for was not explained;
examples added along with more encouragement to use hybrids.

Change-Id: I20bd286f541f798daa81fa598c0f31db1f5aa6ed
(cherry picked from commit 8250a4248fceaa3f4fbaebea3ff6a7f626299659)
lib/sqlalchemy/ext/declarative/api.py
lib/sqlalchemy/orm/descriptor_props.py