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:
parent
5f37a627da
commit
81c4649944
|
@ -302,6 +302,7 @@ on the change list page for the object::
|
||||||
class Poll(meta.Model):
|
class Poll(meta.Model):
|
||||||
# ...
|
# ...
|
||||||
admin = meta.Admin(
|
admin = meta.Admin(
|
||||||
|
# ...
|
||||||
list_display = ('question', 'pub_date'),
|
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.
|
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
|
Because ``pub_date`` is a DateTimeField, Django knows to give the default
|
||||||
filter options for DateTimeFields: "Any date," "Today," "Past 7 days,"
|
filter options for DateTimeFields: "Any date," "Today," "Past 7 days,"
|
||||||
"This month," "This year." Explore using ``list_filter`` on other types of
|
"This month," "This year."
|
||||||
fields.
|
|
||||||
|
|
||||||
This is shaping up well. Let's add some search capability::
|
This is shaping up well. Let's add some search capability::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue