diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-03-09 13:44:39 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-03-09 13:44:39 -0500 |
| commit | e705f86ca806722aed3089e34fd4bf9055a1d8fd (patch) | |
| tree | 70beb73f607cd1f1487e02d628c91b7b32fcbead | |
| parent | 1031fc6f781a3a6088467791e837f23a4b338aef (diff) | |
| parent | 4f857567923ccdbd18dae7a4aa98db040d396e57 (diff) | |
| download | sqlalchemy-e705f86ca806722aed3089e34fd4bf9055a1d8fd.tar.gz | |
Merge remote-tracking branch 'origin/pr/6017'
Change-Id: Ia99bc8990ac1072ad87a245b686196bd94029493
| -rw-r--r-- | doc/build/orm/mapped_attributes.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/build/orm/mapped_attributes.rst b/doc/build/orm/mapped_attributes.rst index a8711d2e6..91e43d202 100644 --- a/doc/build/orm/mapped_attributes.rst +++ b/doc/build/orm/mapped_attributes.rst @@ -256,6 +256,8 @@ to "mirror" another attribute that is mapped. In the most basic sense, the synonym is an easy way to make a certain attribute available by an additional name:: + from sqlalchemy.orm import synonym + class MyClass(Base): __tablename__ = 'my_table' |
