#12935: Stange behaviour of  admin.ModelAdmin
--------------------+-------------------------------------------------------
 Reporter:  jerzyo  |       Owner:  nobody    
   Status:  new     |   Milestone:            
Component:  Forms   |     Version:  1.1       
 Keywords:          |       Stage:  Unreviewed
Has_patch:  0       |  
--------------------+-------------------------------------------------------
 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

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12935>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to