Ticket #10925: 10925.diff

File 10925.diff, 641 bytes (added by Tim Graham, 9 years ago)

note that the method is in models.py

  • docs/intro/tutorial02.txt

    344344an arbitrary method is not supported. Also note that the column header for
    345345``was_published_today`` is, by default, the name of the method (with
    346346underscores replaced with spaces). But you can change that by giving that
    347 method a ``short_description`` attribute::
     347method (in ``models.py``) a ``short_description`` attribute::
    349349    def was_published_today(self):
    350350        return self.pub_date.date() == datetime.date.today()
Back to Top