#8899: Type: () should be []
---------------------------+------------------------------------------------
 Reporter:  anonymous      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Documentation  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 Hi,
 On http://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-
 admin
 at the exclude example it says:

 {{{
 class AuthorAdmin(admin.ModelAdmin):
     fields = ('name', 'title')

 class AuthorAdmin(admin.ModelAdmin):
     exclude = ('birth_date',)
 }}}

 But it should be


 {{{
 class AuthorAdmin(admin.ModelAdmin):
     fields = ['name', 'title']

 class AuthorAdmin(admin.ModelAdmin):
     exclude = ['birth_date',]
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8899>
Django Code <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