1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Made some tiny tweaks to docs/tutorial02.txt -- thanks, anonymous

git-svn-id: http://code.djangoproject.com/svn/django/trunk@527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-08-17 15:01:12 +00:00
parent 5f37a627da
commit 81c4649944

View File

@ -302,6 +302,7 @@ on the change list page for the object::
class Poll(meta.Model):
# ...
admin = meta.Admin(
# ...
list_display = ('question', 'pub_date'),
)
@ -342,8 +343,7 @@ That adds a "Filter" sidebar that lets people filter the change list by the
The type of filter displayed depends on the type of field you're filtering on.
Because ``pub_date`` is a DateTimeField, Django knows to give the default
filter options for DateTimeFields: "Any date," "Today," "Past 7 days,"
"This month," "This year." Explore using ``list_filter`` on other types of
fields.
"This month," "This year."
This is shaping up well. Let's add some search capability::