Skip to content

Commit

Permalink
Fixes #102
Browse files Browse the repository at this point in the history
  • Loading branch information
macro1 committed Nov 4, 2014
1 parent 96f997f commit 61dced4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tutorials/04-more-views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ gets synced to our SQLite database.
Applying blog.0002_auto_20141019_0232... OK
Let's write a ``__str__`` method for our ``Comment`` model like we did for our ``Entry`` model earlier.
Add a ``__str__`` method for our ``Comment`` model, similar to the one
we previously added for our ``Entry`` model.

First we should create a test in ``blog/tests.py``. Our test should look very similar to the ``__str__`` test we wrote for entries earlier. This should suffice:
Now we need to create a test in ``blog/tests.py``. Our test should look
very similar to the ``__str__`` test we wrote in ``EntryModelTest``
earlier. This should suffice:

.. code-block:: python
Expand Down

0 comments on commit 61dced4

Please sign in to comment.