Code

#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.

Attachments (0)

Change History (2)

comment:1 Changed 17 months ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Cleanup/optimization

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

comment:2 Changed 17 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 1add79bc4007fee658f193b65aea2af2347aab6b:

Fixed #19852 - Updated admin fieldset example for consistency.

Thanks chris.freeman.pdx@ for the suggestion.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.