Ticket #10925: 10925.diff
File 10925.diff, 641 bytes (added by , 16 years ago) |
---|
-
docs/intro/tutorial02.txt
344 344 an arbitrary method is not supported. Also note that the column header for 345 345 ``was_published_today`` is, by default, the name of the method (with 346 346 underscores replaced with spaces). But you can change that by giving that 347 method a ``short_description`` attribute::347 method (in ``models.py``) a ``short_description`` attribute:: 348 348 349 349 def was_published_today(self): 350 350 return self.pub_date.date() == datetime.date.today()