From 39f8a04ca89dfb43c79bf3c4c31400061a5cf1e0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 4 Nov 2010 03:58:53 -0400 Subject: fix wiki2 tutorial (it was busted) --- docs/tutorials/wiki2/definingmodels.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docs/tutorials/wiki2/definingmodels.rst') diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst index 9fb0c5d9c..c25eb2864 100644 --- a/docs/tutorials/wiki2/definingmodels.rst +++ b/docs/tutorials/wiki2/definingmodels.rst @@ -22,9 +22,9 @@ Making Edits to ``models.py`` Python subpackage of your application package named ``models``) , but this is only by convention. -The first thing we want to do is remove the stock ``Model`` class from -the generated ``models.py`` file. The ``Model`` class is only a -sample and we're not going to use it. +The first thing we want to do is remove the stock ``MyModel`` class from the +generated ``models.py`` file. The ``MyModel`` class is only a sample and +we're not going to use it. Then, we'll add a ``Page`` class. Because this is a SQLAlchemy application, this class should inherit from an instance of @@ -76,3 +76,5 @@ that ends with this exception: .. code-block:: text ImportError: cannot import name MyModel + +This will also happen if you attempt to run the tests. -- cgit v1.2.3