From dc72b8f492885988a3b7ebcd144d88956eb23102 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 10 Apr 2011 20:52:32 -0400 Subject: Wrong attribute name; closes #146. --- docs/tutorials/wiki2/definingmodels.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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 -- cgit v1.2.3