|Reported by:||Owned by:||Jacob|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
First off, I love the way you guys write documentation.
Some issues with http://www.djangoproject.com/documentation/tutorial1/
- At this point you should probably change 2005 to 2006
- once you define Poll.was_published_today() you need to import datetime into your model.
- the way your example writes Poll.was_published_today() gives me an attribute error (OSX 10.4.6, python 2.4.3),
I believe you want to use is;
def was_published_today(self): return self.pub_date.day == datetime.now().day
- All the shell interaction responses are off (they look like they are in namespaces now), probably because they were changed recently, what I get is
<Choice: Not much> <Choice: the sky> <Poll: What's up?>