#5574: FileField not properly serializing to XML
------------------------------------------------------------+---------------
Reporter:  Chris Henderson <[EMAIL PROTECTED]>  |       Owner:  nobody          
             
  Status:  new                                              |   Component:  
Serialization                
 Version:  SVN                                              |    Keywords:  
FileField, xml, serialization
   Stage:  Unreviewed                                       |   Has_patch:  1   
                         
------------------------------------------------------------+---------------
 When executing {{{python manage.py dumpdata --format xml}}}, FileField
 fields get serialized using the get_FIELD_url() method, which is causing
 (for me at least) this error:

 {{{
 Problem installing fixture 'myfixture.xml': [Errno 2] No such file or
 directory: u'/site_media/avatars/system/001.gif
 }}}

 The small attached patch fixes this problem by not treating FileField
 fields differently than other fields.

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