Fixed #7838 -- Corrected an invalid class name the 'classes' usage in the tutorial. Thanks kratorius for catching this.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Brian Rosner 2008-07-19 15:51:48 +00:00
parent 4729e3836e
commit 67eeb72e26
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ aren't commonly used::
class PollAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question']}),
('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}),
('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
]
.. image:: http://media.djangoproject.com/img/doc/tutorial-trunk/admin09.png
@ -242,7 +242,7 @@ registration code to read::
class PollAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question']}),
('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}),
('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
]
inlines = [ChoiceInline]