Ticket #11628: 11628.diff
File 11628.diff, 548 bytes (added by , 15 years ago) |
---|
-
docs/intro/tutorial01.txt
643 643 >>> Poll.objects.filter(question__startswith='What') 644 644 [<Poll: What's up?>] 645 645 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. 648 647 >>> Poll.objects.get(pub_date__year=2007) 649 648 <Poll: What's up?> 650 649