#2599: [PATCH] raw_id_admin field has incorrect value in admin form after
validation errors
----------------------------------------------+-----------------------------
 Reporter:  Christopher Lenz <[EMAIL PROTECTED]>  |       Owner:  adrian
     Type:  defect                            |      Status:  new   
 Priority:  normal                            |   Milestone:        
Component:  Admin interface                   |     Version:  0.95  
 Severity:  normal                            |    Keywords:        
----------------------------------------------+-----------------------------
 I'm not sure what this is all about, I'm I was having the following
 problem:
 
 In the admin for an object that has a raw_id_admin field, when opening an
 object for editing, the value of the text input is correct: a comma-
 separated list of IDs:
 
 {{{
 #!xml
   <input type="text" value="1,2,3" ... />
 }}}
 
 However, when saving the object but getting validation errors, the form
 field suddenly contains the `repr` of the equivalent Python list in the
 value attribute:
 
 {{{
 #!xml
   <input type="text" value="[&#39;1&#39;, &#39;2&#39;, &#39;3&#39;]" ...
 />
 }}}
 
 I'll attach a patch that fixes this, but I'm really not sure where the
 actual problem is, and where it should be ideally fixed.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2599>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to