Ticket #11628: 11628.diff

File 11628.diff, 548 bytes (added by Tim Graham, 15 years ago)
  • docs/intro/tutorial01.txt

     
    643643    >>> Poll.objects.filter(question__startswith='What')
    644644    [<Poll: What's up?>]
    645645
    646     # Get the poll whose year is 2007. Of course, if you're going through this
    647     # tutorial in another year, change as appropriate.
     646    # Get the poll whose year is 2007.
    648647    >>> Poll.objects.get(pub_date__year=2007)
    649648    <Poll: What's up?>
    650649
Back to Top