]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
modernize and repair inheritance examples
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 May 2017 13:51:06 +0000 (09:51 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 May 2017 13:53:09 +0000 (09:53 -0400)
commita2ba984121a140662770fc2d10b7dbb8d1662a69
tree33a0fbaf8b626160486f45c65d23efe9a29a6d84
parent34a16747c004dde3bd8d3d723a4d7290b9746d5c
modernize and repair inheritance examples

remarkably, the examples for concrete and single were still
using classical mappings.    Ensure all three examples use
modern declarative patterns, each illustrate the identical set
of query operations.  Use back_populates, flat=True for joins,
etc. ensure flake8 linting, correct links and add a link back
from newly reworked inheritance documentation.

Change-Id: I8465a9badbb0eda804f457ccac599f051ee3c27c
(cherry picked from commit 5329fc481ed1dcea0e922fd63def3094bda12c91)
doc/build/orm/examples.rst
doc/build/orm/inheritance.rst
examples/inheritance/__init__.py
examples/inheritance/concrete.py
examples/inheritance/joined.py
examples/inheritance/single.py