Opened 12 years ago
Closed 12 years ago
#19852 closed Cleanup/optimization (fixed)
Typo in documentation for FieldSets classes
Reported by: | 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 , 12 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Either works, but I'll change the brackets to parentheses to be consistent.