diff options
| author | Chris McDonough <chrism@plope.com> | 2011-04-22 19:49:41 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-04-22 19:49:41 -0400 |
| commit | 93d3059176b41d75d0fe3b256a1556aa93c7cd10 (patch) | |
| tree | 293f2b9a234e864c030dcd7ed1b43459dc50e59b /docs/tutorials/wiki2/definingmodels.rst | |
| parent | bf8c8f7c8e88e81a9f8c75c435c28e6269df049c (diff) | |
| parent | df3d80dca92f3ae023ecc900338c76de6106cc0b (diff) | |
| download | pyramid-93d3059176b41d75d0fe3b256a1556aa93c7cd10.tar.gz pyramid-93d3059176b41d75d0fe3b256a1556aa93c7cd10.tar.bz2 pyramid-93d3059176b41d75d0fe3b256a1556aa93c7cd10.zip | |
Merge branch 'kstrauser-master'
Diffstat (limited to 'docs/tutorials/wiki2/definingmodels.rst')
| -rw-r--r-- | docs/tutorials/wiki2/definingmodels.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst index 1661753c1..e5d283125 100644 --- a/docs/tutorials/wiki2/definingmodels.rst +++ b/docs/tutorials/wiki2/definingmodels.rst @@ -26,6 +26,14 @@ 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. +Next, we'll remove the :class:`sqlalchemy.Unicode` import and replace it +with :class:`sqlalchemy.Text`. + +.. literalinclude:: src/models/tutorial/models.py + :lines: 5 + :linenos: + :language: py + Then, we'll add a ``Page`` class. Because this is a SQLAlchemy application, this class should inherit from an instance of :class:`sqlalchemy.ext.declarative.declarative_base`. Declarative |
