2012 is so last year!
|Reported by:||damian@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I was reading through the excellent tutorial for 1.4 (and let me just say it really is excellent - one of the best I've ever done), and as it's now 2013, some of the exercises on the first page - https://docs.djangoproject.com/en/1.4/intro/tutorial01/ don't work so well. In particular:
# Get the poll whose year is 2012. >>> Poll.objects.get(pub_date__year=2012) <Poll: What's up?>
will return nothing (because there's no polls in 2012 as the poll was created 'now' (ie. 2013)
# Find all Choices for any poll whose pub_date is in 2012. >>> Choice.objects.filter(poll__pub_date__year=2012) [<Choice: Not much>, <Choice: The sky>, <Choice: Just hacking again>]
So I guess I'm saying just switching 2013 for 2012 in that page.
Otherwise, really excellent work on the tutorial!