#12481: admin readonly_fields not working with edtiable=False field named in
fieldset
-------------------------------------------+--------------------------------
          Reporter:  lashni                |         Owner:  nobody  
            Status:  reopened              |     Milestone:  1.2     
         Component:  django.contrib.admin  |       Version:  1.2-beta
        Resolution:                        |      Keywords:          
             Stage:  Accepted              |     Has_patch:  1       
        Needs_docs:  0                     |   Needs_tests:  0       
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by russellm):

  * stage:  Unreviewed => Accepted
  * summary:  admin readonly_fields not working with fieldsets => admin
              readonly_fields not working with edtiable=False
              field named in fieldset
  * version:  SVN => 1.2-beta
  * milestone:  => 1.2

Old description:

> Using readonly_fields makes the model field visible in admin but
> specifying it in a fieldset errors out.
>
> {{{
> 'PostAdmin.fieldsets[1][1]['fields']' refers to field 'date_modified'
> that is missing from the form.
> }}}

New description:

 If a field is marked editable=False, and it is included in a fieldset in a
 model admin, and it is also listed in readonly_fields, an error is raised:

 {{{
 'PostAdmin.fieldsets[1][1]['fields']' refers to field 'date_modified' that
 is missing from the form.
 }}}

Comment:

 Updated ticket title and description to reflect the actual problem

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12481#comment:8>
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