Kaydet (Commit) 67eeb72e authored tarafından Brian Rosner's avatar Brian Rosner

Fixed #7838 -- Corrected an invalid class name the 'classes' usage in the…

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
üst 4729e383
......@@ -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]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment