summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/definingmodels.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-04-10 20:52:32 -0400
committerChris McDonough <chrism@plope.com>2011-04-10 20:52:32 -0400
commitdc72b8f492885988a3b7ebcd144d88956eb23102 (patch)
treed95e01e215e46b008a91c50e007252a82a6d9117 /docs/tutorials/wiki2/definingmodels.rst
parentaf71c25e5130add0d4148b94f3a0fbffe4a424da (diff)
downloadpyramid-dc72b8f492885988a3b7ebcd144d88956eb23102.tar.gz
pyramid-dc72b8f492885988a3b7ebcd144d88956eb23102.tar.bz2
pyramid-dc72b8f492885988a3b7ebcd144d88956eb23102.zip
Wrong attribute name; closes #146.
Diffstat (limited to 'docs/tutorials/wiki2/definingmodels.rst')
-rw-r--r--docs/tutorials/wiki2/definingmodels.rst2
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