Opened 12 years ago

Closed 12 years ago

#19852 closed Cleanup/optimization (fixed)

Typo in documentation for FieldSets classes

Reported by: chris.freeman.pdx@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords: fieldsets classes
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Documentation syntax seems inconsistent for the fieldsets classes option: https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets

In the FlatpageAdmin example, the syntax is shown as:

'classes': ('collapse',),

In the description of the fieldsets options:

'classes': ['wide', 'extrapretty'],

The difference being parentheses verses square brackets.

Change History (2)

comment:1 by Tim Graham, 12 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

Either works, but I'll change the brackets to parentheses to be consistent.

comment:2 by Tim Graham <timograham@…>, 12 years ago

Resolution: fixed
Status: newclosed

In 1add79bc4007fee658f193b65aea2af2347aab6b:

Fixed #19852 - Updated admin fieldset example for consistency.

Thanks chris.freeman.pdx@ for the suggestion.

Note: See TracTickets for help on using tickets.
Back to Top