summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAudrey Roy <audreyr@gmail.com>2012-03-12 18:07:36 -0700
committerAudrey Roy <audreyr@gmail.com>2012-03-12 18:07:36 -0700
commitc4b64f07487e23427187c08aaf3aec8b89bd267f (patch)
tree326a1f5aa168f2fd210784052a98b372d95a2b1f /docs
parentd0f5c6885d584493c451d776867d44585c89ec02 (diff)
downloadpyramid-c4b64f07487e23427187c08aaf3aec8b89bd267f.tar.gz
pyramid-c4b64f07487e23427187c08aaf3aec8b89bd267f.tar.bz2
pyramid-c4b64f07487e23427187c08aaf3aec8b89bd267f.zip
The import also has changed and needs to be edited by the user, so I highlighted it.
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorials/wiki2/definingmodels.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst
index ca0493f32..0810ad1c5 100644
--- a/docs/tutorials/wiki2/definingmodels.rst
+++ b/docs/tutorials/wiki2/definingmodels.rst
@@ -67,12 +67,15 @@ script. In particular, we'll replace our import of ``MyModel`` with one of
``Page`` and we'll change the very end of the script to create a ``Page``
rather than a ``MyModel`` and add it to our ``DBSession``.
-The result of all of our edits to ``populate.py`` will end up looking
-something like this:
+Open ``tutorial/tutorial/scripts/populate.py`` and edit it to look like the
+following:
.. literalinclude:: src/models/tutorial/scripts/populate.py
:linenos:
:language: python
+ :emphasize-lines: 14,34
+
+(Only the highlighted lines need to be changed.)
Repopulating the Database
-------------------------