#15503: Admin readonly_fields should have a hidden field
------------------------------------------------+---------------------------
               Reporter:  dahool                |         Owner:  nobody        
 
                 Status:  closed                |     Milestone:                
 
              Component:  django.contrib.admin  |       Version:  1.2           
 
             Resolution:  invalid               |      Keywords:  
readonly_fields
           Triage Stage:  Unreviewed            |     Has patch:  0             
 
    Needs documentation:  0                     |   Needs tests:  0             
 
Patch needs improvement:  0                     |  
------------------------------------------------+---------------------------
Changes (by russellm):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0


Comment:

 A readonly field really shouldn't have a hidden field. If it did, it
 wouldn't be a readonly field, because it would be possible for end users
 to create a POST request that would modify the value.

 As for any other problems -- you haven't provided enough detail for anyone
 else to reproduce the problem you've described. I set up a custom
 ModelAdmin for User with username as a readonly field, and didn't see any
 behavior that surprised me.

 If you think there is a validation problem here, feel free to reopen --
 but with enough detail that would allow someone else to replicate the
 problem you are seeing.

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