summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/definingmodels.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-06-11 05:43:16 -0400
committerChris McDonough <chrism@plope.com>2011-06-11 05:43:16 -0400
commita4d5525cdbb6b7e614939b20a340b989258779ca (patch)
tree666586b1a0293a04fe3ed4bc27eeddbd680e4311 /docs/tutorials/wiki2/definingmodels.rst
parentaee35e30083acd3d3c84e7f50db1f17bf6dc2d12 (diff)
parentb1b9f99e9a2e249cff61f4ccc0ecf10ac734fa08 (diff)
downloadpyramid-a4d5525cdbb6b7e614939b20a340b989258779ca.tar.gz
pyramid-a4d5525cdbb6b7e614939b20a340b989258779ca.tar.bz2
pyramid-a4d5525cdbb6b7e614939b20a340b989258779ca.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/tutorials/wiki2/definingmodels.rst')
-rw-r--r--docs/tutorials/wiki2/definingmodels.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst
index e5d283125..7aa2214fc 100644
--- a/docs/tutorials/wiki2/definingmodels.rst
+++ b/docs/tutorials/wiki2/definingmodels.rst
@@ -45,7 +45,7 @@ SQLAlchemy models are easier to use than directly-mapped ones.
:language: python
As you can see, our ``Page`` class has a class level attribute
-``__tablename__`` which equals the string ``pages``. This means that
+``__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``, ``name`` and
``data`` (all instances of :class:`sqlalchemy.Column`). These will map to
@@ -67,7 +67,7 @@ Here, we're using a slightly different binding syntax. It is otherwise
largely the same as the ``initialize_sql`` in the paster-generated
``models.py``.
-Our DBSession assignment stays the same as the original generated
+Our ``DBSession`` assignment stays the same as the original generated
``models.py``.
Looking at the Result of all Our Edits to ``models.py``