summaryrefslogtreecommitdiff
path: root/examples/generic_associations
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2018-12-07 12:17:59 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2018-12-07 12:17:59 -0500
commitc89729cf67f441359da8289104050b01eb53160b (patch)
treefcaa520e3093d337ae1222214fbff996b7faae60 /examples/generic_associations
parent09856b911ba52befc330676ad831d7829f88ef20 (diff)
downloadsqlalchemy-c89729cf67f441359da8289104050b01eb53160b.tar.gz
- fix formatting on examples to list the description first, some flake8
Change-Id: I57144a559f20abab02e745d052be5ff84edec7f8
Diffstat (limited to 'examples/generic_associations')
-rw-r--r--examples/generic_associations/discriminator_on_association.py4
-rw-r--r--examples/generic_associations/generic_fk.py4
-rw-r--r--examples/generic_associations/table_per_association.py4
-rw-r--r--examples/generic_associations/table_per_related.py4
4 files changed, 4 insertions, 12 deletions
diff --git a/examples/generic_associations/discriminator_on_association.py b/examples/generic_associations/discriminator_on_association.py
index 7bb04cf85..c3501eefb 100644
--- a/examples/generic_associations/discriminator_on_association.py
+++ b/examples/generic_associations/discriminator_on_association.py
@@ -1,6 +1,4 @@
-"""discriminator_on_related.py
-
-Illustrates a mixin which provides a generic association
+"""Illustrates a mixin which provides a generic association
using a single target table and a single association table,
referred to by all parent tables. The association table
contains a "discriminator" column which determines what type of
diff --git a/examples/generic_associations/generic_fk.py b/examples/generic_associations/generic_fk.py
index e228c6ba4..31d2c138d 100644
--- a/examples/generic_associations/generic_fk.py
+++ b/examples/generic_associations/generic_fk.py
@@ -1,6 +1,4 @@
-"""generic_fk.py
-
-Illustrates a so-called "generic foreign key", in a similar fashion
+"""Illustrates a so-called "generic foreign key", in a similar fashion
to that of popular frameworks such as Django, ROR, etc. This
approach bypasses standard referential integrity
practices, in that the "foreign key" column is not actually
diff --git a/examples/generic_associations/table_per_association.py b/examples/generic_associations/table_per_association.py
index 4993492a4..d54d2f1fa 100644
--- a/examples/generic_associations/table_per_association.py
+++ b/examples/generic_associations/table_per_association.py
@@ -1,6 +1,4 @@
-"""table_per_association.py
-
-Illustrates a mixin which provides a generic association
+"""Illustrates a mixin which provides a generic association
via a individually generated association tables for each parent class.
The associated objects themselves are persisted in a single table
shared among all parents.
diff --git a/examples/generic_associations/table_per_related.py b/examples/generic_associations/table_per_related.py
index aff6e40ce..51c9f1b26 100644
--- a/examples/generic_associations/table_per_related.py
+++ b/examples/generic_associations/table_per_related.py
@@ -1,6 +1,4 @@
-"""table_per_related.py
-
-Illustrates a generic association which persists association
+"""Illustrates a generic association which persists association
objects within individual tables, each one generated to persist
those objects on behalf of a particular parent class.