Django

Code

Changeset 543

Show
Ignore:
Timestamp:
08/21/05 13:26:56 (3 years ago)
Author:
adrian
Message:

Fixed #381 -- Clarified tutorial 1. Thanks, ssteiner

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/tutorial01.txt

    r501 r543  
    346346 
    347347Wait a minute. ``<Poll object>`` is, utterly, an unhelpful representation of 
    348 this object. Let's fix that by editing the polls model and adding a 
    349 ``__repr__()`` method to both ``Poll`` and ``Choice``:: 
     348this object. Let's fix that by editing the polls model 
     349(in the ``polls/models/polls.py`` file) and adding a ``__repr__()`` method to 
     350both ``Poll`` and ``Choice``:: 
    350351 
    351352    class Poll(meta.Model):