Ticket #12918: 12918.diff
File 12918.diff, 952 bytes (added by , 15 years ago) |
---|
-
intro/tutorial02.txt
286 286 This tells Django: "Choice objects are edited on the Poll admin page. By 287 287 default, provide enough fields for 3 choices." 288 288 289 Load the "Add poll" page to see how that looks :289 Load the "Add poll" page to see how that looks, you may need to restart your development server: 290 290 291 291 .. image:: _images/admin11t.png 292 292 :alt: Add poll page now has choices on it … … 352 352 return self.pub_date.date() == datetime.date.today() 353 353 was_published_today.short_description = 'Published today?' 354 354 355 Let's add anotherimprovement to the Poll change list page: Filters. Add the355 Edit your admin.py file again and add an improvement to the Poll change list page: Filters. Add the 356 356 following line to ``PollAdmin``:: 357 357 358 358 list_filter = ['pub_date']