Author: brosner
Date: 2008-07-19 10:37:28 -0500 (Sat, 19 Jul 2008)
New Revision: 7983

Modified:
   django/trunk/docs/admin.txt
   django/trunk/docs/tutorial02.txt
Log:
Fixed #7839 -- Corrected admin documentation and tutorial to reflect that 
'classes' should be a list and not a string. Thanks Jan Rademaker for the patch.

Modified: django/trunk/docs/admin.txt
===================================================================
--- django/trunk/docs/admin.txt 2008-07-19 15:05:00 UTC (rev 7982)
+++ django/trunk/docs/admin.txt 2008-07-19 15:37:28 UTC (rev 7983)
@@ -122,20 +122,14 @@
         }
 
 ``classes``
-    A string containing extra CSS classes to apply to the fieldset.
+    A list containing extra CSS classes to apply to the fieldset.
     
     Example::
         
         {
-        'classes': 'wide',
+        'classes': ['wide', 'extrapretty'],
         }
 
-    Apply multiple classes by separating them with spaces. Example::
-        
-        {
-        'classes': 'wide extrapretty',
-        }
-    
     Two useful classes defined by the default admin-site stylesheet are
     ``collapse`` and ``wide``. Fieldsets with the ``collapse`` style will be
     initially collapsed in the admin and replaced with a small "click to 
expand"

Modified: django/trunk/docs/tutorial02.txt
===================================================================
--- django/trunk/docs/tutorial02.txt    2008-07-19 15:05:00 UTC (rev 7982)
+++ django/trunk/docs/tutorial02.txt    2008-07-19 15:37:28 UTC (rev 7983)
@@ -192,7 +192,7 @@
         class PollAdmin(admin.ModelAdmin):
             fieldsets = [
                 (None,               {'fields': ['question']}),
-                ('Date information', {'fields': ['pub_date'], 'classes': 
'pub_date'}),
+                ('Date information', {'fields': ['pub_date'], 'classes': 
['pub_date']}),
             ]
 
 .. image:: http://media.djangoproject.com/img/doc/tutorial-trunk/admin09.png
@@ -242,7 +242,7 @@
     class PollAdmin(admin.ModelAdmin):
         fieldsets = [
             (None,               {'fields': ['question']}),
-            ('Date information', {'fields': ['pub_date'], 'classes': 
'pub_date'}),
+            ('Date information', {'fields': ['pub_date'], 'classes': 
['pub_date']}),
         ]
         inlines = [ChoiceInline]
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to