Django

Code

Changeset 747

Show
Ignore:
Timestamp:
09/30/05 11:40:15 (3 years ago)
Author:
adrian
Message:

Fixed typo in docs/tutorial01.txt. Thanks, Aggelos Orfanakos

Files:

Legend:

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

    r703 r747  
    386386    # keyword arguments. 
    387387    >>> polls.get_object(id__exact=1) 
    388     What's up 
     388    What's up? 
    389389    >>> polls.get_object(question__startswith='What') 
    390     What's up 
     390    What's up? 
    391391    >>> polls.get_object(pub_date__year=2005) 
    392     What's up 
     392    What's up? 
    393393    >>> polls.get_object(id__exact=2) 
    394394    Traceback (most recent call last): 
     
    396396    PollDoesNotExist: Poll does not exist for {'id__exact': 2} 
    397397    >>> polls.get_list(question__startswith='What') 
    398     [What's up
     398    [What's up?
    399399 
    400400    # Lookup by a primary key is the most common case, so Django provides a 
     
    402402    # The following is identical to polls.get_object(id__exact=1). 
    403403    >>> polls.get_object(pk=1) 
    404     What's up 
     404    What's up? 
    405405 
    406406    # Make sure our custom method worked. 
     
    420420    # Choice objects have API access to their related Poll objects. 
    421421    >>> c.get_poll() 
    422     What's up 
     422    What's up? 
    423423 
    424424    # And vice versa: Poll objects get access to Choice objects.