]> 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:03:04 +0000 (18:03 -0500)
commit8250a4248fceaa3f4fbaebea3ff6a7f626299659
treec5e779f56baa49ae11df79036fba002624ca02ac
parent6ddabc0f0f4a2e460e6fc4f33ff5c3441e874942
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
lib/sqlalchemy/ext/declarative/api.py
lib/sqlalchemy/orm/descriptor_props.py