]> 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:02 +0000 (09:53 -0400)
commit0a40d5c4a024ed890497a8853c0b61e4a601da9b
tree94d99825a267012c1a36d0242b98ea261729696d
parent06af579db292537d5f81394bba5855b0fdffb12c
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