Code

Ticket #7839: 7839.diff

File 7839.diff, 1.8 KB (added by Jan Rademaker <j.rademaker@…>, 6 years ago)
Line 
1Index: docs/tutorial02.txt
2===================================================================
3--- docs/tutorial02.txt (revision 7980)
4+++ docs/tutorial02.txt (working copy)
5@@ -192,7 +192,7 @@
6         class PollAdmin(admin.ModelAdmin):
7             fieldsets = [
8                 (None,               {'fields': ['question']}),
9-                ('Date information', {'fields': ['pub_date'], 'classes': 'pub_date'}),
10+                ('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}),
11             ]
12 
13 .. image:: http://media.djangoproject.com/img/doc/tutorial-trunk/admin09.png
14@@ -242,7 +242,7 @@
15     class PollAdmin(admin.ModelAdmin):
16         fieldsets = [
17             (None,               {'fields': ['question']}),
18-            ('Date information', {'fields': ['pub_date'], 'classes': 'pub_date'}),
19+            ('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}),
20         ]
21         inlines = [ChoiceInline]
22 
23Index: docs/admin.txt
24===================================================================
25--- docs/admin.txt      (revision 7980)
26+++ docs/admin.txt      (working copy)
27@@ -122,20 +122,14 @@
28         }
29 
30 ``classes``
31-    A string containing extra CSS classes to apply to the fieldset.
32+    A list containing extra CSS classes to apply to the fieldset.
33     
34     Example::
35         
36         {
37-        'classes': 'wide',
38+        'classes': ['wide', 'extrapretty'],
39         }
40 
41-    Apply multiple classes by separating them with spaces. Example::
42-       
43-        {
44-        'classes': 'wide extrapretty',
45-        }
46-   
47     Two useful classes defined by the default admin-site stylesheet are
48     ``collapse`` and ``wide``. Fieldsets with the ``collapse`` style will be
49     initially collapsed in the admin and replaced with a small "click to expand"