diff options
| author | Chris McDonough <chrism@plope.com> | 2011-04-10 20:52:32 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-04-10 20:52:32 -0400 |
| commit | dc72b8f492885988a3b7ebcd144d88956eb23102 (patch) | |
| tree | d95e01e215e46b008a91c50e007252a82a6d9117 /docs | |
| parent | af71c25e5130add0d4148b94f3a0fbffe4a424da (diff) | |
| download | pyramid-dc72b8f492885988a3b7ebcd144d88956eb23102.tar.gz pyramid-dc72b8f492885988a3b7ebcd144d88956eb23102.tar.bz2 pyramid-dc72b8f492885988a3b7ebcd144d88956eb23102.zip | |
Wrong attribute name; closes #146.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tutorials/wiki2/definingmodels.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst index 7e8555190..1661753c1 100644 --- a/docs/tutorials/wiki2/definingmodels.rst +++ b/docs/tutorials/wiki2/definingmodels.rst @@ -39,7 +39,7 @@ SQLAlchemy models are easier to use than directly-mapped ones. As you can see, our ``Page`` class has a class level attribute ``__tablename__`` which equals the string ``pages``. This means that SQLAlchemy will store our wiki data in a SQL table named ``pages``. Our Page -class will also have class-level attributes named ``id``, ``pagename`` and +class will also have class-level attributes named ``id``, ``name`` and ``data`` (all instances of :class:`sqlalchemy.Column`). These will map to columns in the ``pages`` table. The ``id`` attribute will be the primary key in the table. The ``name`` attribute will be a text attribute, each value of |
