Ticket #7839: 7839.diff
File 7839.diff, 1.8 KB (added by , 16 years ago) |
---|
-
docs/tutorial02.txt
192 192 class PollAdmin(admin.ModelAdmin): 193 193 fieldsets = [ 194 194 (None, {'fields': ['question']}), 195 ('Date information', {'fields': ['pub_date'], 'classes': 'pub_date'}),195 ('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}), 196 196 ] 197 197 198 198 .. image:: http://media.djangoproject.com/img/doc/tutorial-trunk/admin09.png … … 242 242 class PollAdmin(admin.ModelAdmin): 243 243 fieldsets = [ 244 244 (None, {'fields': ['question']}), 245 ('Date information', {'fields': ['pub_date'], 'classes': 'pub_date'}),245 ('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}), 246 246 ] 247 247 inlines = [ChoiceInline] 248 248 -
docs/admin.txt
122 122 } 123 123 124 124 ``classes`` 125 A stringcontaining extra CSS classes to apply to the fieldset.125 A list containing extra CSS classes to apply to the fieldset. 126 126 127 127 Example:: 128 128 129 129 { 130 'classes': 'wide',130 'classes': ['wide', 'extrapretty'], 131 131 } 132 132 133 Apply multiple classes by separating them with spaces. Example::134 135 {136 'classes': 'wide extrapretty',137 }138 139 133 Two useful classes defined by the default admin-site stylesheet are 140 134 ``collapse`` and ``wide``. Fieldsets with the ``collapse`` style will be 141 135 initially collapsed in the admin and replaced with a small "click to expand"