]> 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:51:06 +0000 (09:51 -0400)
commit5329fc481ed1dcea0e922fd63def3094bda12c91
tree827aaac0ff4b7c9897aa3468d8593fe3fed54c84
parentb5697334789a84e4dec2729053ab6a6640855ac8
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
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