Opened 15 years ago
Closed 15 years ago
#12935 closed (duplicate)
Stange behaviour of admin.ModelAdmin
Reported by: | jerzyo | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I encounter a strange error when customizing my admin site
{{{class DataFileAdmin(admin.ModelAdmin):
#form = MyDataFileAdminForm
exclude = ('file')}}}
does not remove the field from the form but
{{{class DataFileAdmin(admin.ModelAdmin):
#form = MyDataFileAdminForm
exclude = ('file',)}}}
does.
Could someone explain it to me what is the role of the ending comma? As far as I know Python, it should have no influence on the interpreter
Note:
See TracTickets
for help on using tickets.
Sorry for wrong formatting it should be
The one one works, the first one does not