#11628: Incorrect comment in part 1 of tutorial
---------------------------------+------------------------------------------
 Reporter:  [email protected]  |       Owner:  nobody    
   Status:  new                  |   Milestone:            
Component:  Documentation        |     Version:  SVN       
 Keywords:                       |       Stage:  Unreviewed
Has_patch:  0                    |  
---------------------------------+------------------------------------------
 In the last big box full of example code in part 1 of the tutorial, it
 says

 {{{
 # Get the poll whose year is 2007. Of course, if you're going through this
 # tutorial in another year, change as appropriate.
 >>> Poll.objects.get(pub_date__year=2007)
 <Poll: What's up?>
 }}}

 I first tried this with the parameter set to 2009 as instructed by the
 comment, and got a DoesNotExist exception. Then it occurred to me that a
 little earlier in the page we had set the year to 2007, so the comment
 saying to change the year does nothing but mess you up.

 This is actually against version 1.1, but that's still not an option in
 the Version dropdown. Maybe that should be its own ticket.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11628>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to