diff options
Diffstat (limited to 'examples/generic_associations/__init__.py')
| -rw-r--r-- | examples/generic_associations/__init__.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/examples/generic_associations/__init__.py b/examples/generic_associations/__init__.py index 2121e8b60..b6593b4f4 100644 --- a/examples/generic_associations/__init__.py +++ b/examples/generic_associations/__init__.py @@ -9,19 +9,10 @@ subclassing the ``HasAddresses`` mixin, which ensures that the parent class is provided with an ``addresses`` collection which contains ``Address`` objects. -The configurations include: - -* ``table_per_related.py`` - illustrates a distinct table per related collection. -* ``table_per_association.py`` - illustrates a shared collection table, using a - table per association. -* ``discriminator_on_association.py`` - shared collection table and shared - association table, including a discriminator column. -* ``generic_fk.py`` - imitates the approach taken by popular frameworks such - as Django and Ruby on Rails to create a so-called "generic foreign key". - -The ``discriminator_on_association.py`` and ``generic_fk.py`` scripts +The :viewsource:`.discriminator_on_association` and :viewsource:`.generic_fk` scripts are modernized versions of recipes presented in the 2007 blog post `Polymorphic Associations with SQLAlchemy <http://techspot.zzzeek.org/2007/05/29/polymorphic-associations-with-sqlalchemy/>`_. -. + +.. autosource:: """
\ No newline at end of file |
