#12266: tutorial02: Error in fieldset data structure
---------------------------+------------------------------------------------
 Reporter:  roelschlaeger  |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.1       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 Running '1.2 pre-alpha' on Windows

 In http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02

 {{{
 class PollAdmin(admin.ModelAdmin):
     fieldsets = [
         (None,               {'fields': ['question']}),
         ('Date information', {'fields': ['pub_date']}),
     ]

 admin.site.register(Poll, PollAdmin)
 }}}

 didn't work, but

 {{{
 class PollAdmin(admin.ModelAdmin):

     fieldsets = [
         (None,                  {'fields': ('question',)}),
         ('Date Information',    {'fields': ('pub_date',)}),
     ]

 admin.site.register(Poll, PollAdmin)
 }}}

 did.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12266>
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to