Ticket #12918: 12918.diff

File 12918.diff, 952 bytes (added by cassidy, 15 years ago)
  • intro/tutorial02.txt

     
    286286This tells Django: "Choice objects are edited on the Poll admin page. By
    287287default, provide enough fields for 3 choices."
    288288
    289 Load the "Add poll" page to see how that looks:
     289Load the "Add poll" page to see how that looks, you may need to restart your development server:
    290290
    291291.. image:: _images/admin11t.png
    292292   :alt: Add poll page now has choices on it
     
    352352        return self.pub_date.date() == datetime.date.today()
    353353    was_published_today.short_description = 'Published today?'
    354354
    355 Let's add another improvement to the Poll change list page: Filters. Add the
     355Edit your admin.py file again and add an improvement to the Poll change list page: Filters. Add the
    356356following line to ``PollAdmin``::
    357357
    358358    list_filter = ['pub_date']
Back to Top