diff options
-rw-r--r-- | doc/build/content/plugins.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/build/content/plugins.txt b/doc/build/content/plugins.txt index 1f2971fdf..eb80e6b82 100644 --- a/doc/build/content/plugins.txt +++ b/doc/build/content/plugins.txt @@ -39,10 +39,10 @@ SQLAlchemy has a variety of extensions available which provide extra functionali def __init__(self, keyword): self.keyword = keyword - mapper(User, users, properties={ - 'kw': relation(Keyword, secondary=userkeywords) + mapper(User, users_table, properties={ + 'kw': relation(Keyword, secondary=userkeywords_table) }) - mapper(Keyword, keywords) + mapper(Keyword, keywords_table) Above are three simple tables, modeling users, keywords and a many-to-many relationship between the two. These ``Keyword`` objects are little more than a container for a name, and accessing them via the relation is awkward: |