Django

Code

Changeset 7983

Show
Ignore:
Timestamp:
07/19/08 10:37:28 (6 months ago)
Author:
brosner
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/admin.txt

    r7967 r7983  
    123123 
    124124``classes`` 
    125     A string containing extra CSS classes to apply to the fieldset. 
     125    A list containing extra CSS classes to apply to the fieldset. 
    126126     
    127127    Example:: 
    128128         
    129129        { 
    130         'classes': 'wide'
     130        'classes': ['wide', 'extrapretty']
    131131        } 
    132132 
    133     Apply multiple classes by separating them with spaces. Example:: 
    134          
    135         { 
    136         'classes': 'wide extrapretty', 
    137         } 
    138      
    139133    Two useful classes defined by the default admin-site stylesheet are 
    140134    ``collapse`` and ``wide``. Fieldsets with the ``collapse`` style will be 
  • django/trunk/docs/tutorial02.txt

    r7967 r7983  
    193193            fieldsets = [ 
    194194                (None,               {'fields': ['question']}), 
    195                 ('Date information', {'fields': ['pub_date'], 'classes': 'pub_date'}), 
     195                ('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}), 
    196196            ] 
    197197 
     
    243243        fieldsets = [ 
    244244            (None,               {'fields': ['question']}), 
    245             ('Date information', {'fields': ['pub_date'], 'classes': 'pub_date'}), 
     245            ('Date information', {'fields': ['pub_date'], 'classes': ['pub_date']}), 
    246246        ] 
    247247        inlines = [ChoiceInline]