Django

Code

Changeset 2967

Show
Ignore:
Timestamp:
05/22/06 20:34:06 (2 years ago)
Author:
mtredinnick
Message:

Changed an overlooked occurrence of repr() to str(). Pointed out by Jeremy
Dunck on the mailing list.

Files:

Legend:

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

    r2923 r2967  
    285285   :target: http://media.djangoproject.com/img/doc/tutorial/admin04.png 
    286286 
    287 By default, Django displays the ``repr()`` of each object. But it'd be more 
    288 helpful if we could display individual fields. To do that, use the 
     287By default, Django displays the ``str()`` of each object. But sometimes it'd 
     288be more helpful if we could display individual fields. To do that, use the 
    289289``list_display`` option, which is a tuple of field names to display, as columns, 
    290290on the change list page for the object::