Django

Code

Changeset 315

Show
Ignore:
Timestamp:
07/26/05 09:41:13 (3 years ago)
Author:
adrian
Message:

Fixed #203 -- Added explicit comma to tutorial 2. Thanks, sirpete@iki.fi

Files:

Legend:

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

    r274 r315  
    331331following line to ``Poll.admin``:: 
    332332 
    333     list_filter = ('pub_date', ) 
     333    list_filter = ['pub_date'], 
    334334 
    335335That adds a "Filter" sidebar that lets people filter the change list by the 
     
    348348This is shaping up well. Let's add some search capability:: 
    349349 
    350     search_fields = ('question', ) 
     350    search_fields = ['question'], 
    351351 
    352352That adds a search box at the top of the change list. When somebody enters