#11486: There are no way to provide empty (or null/None) "pk" for XML serialized
object to deserialized
------------------------------------+---------------------------------------
          Reporter:  zdmytriv       |         Owner:  niall               
            Status:  new            |     Milestone:                      
         Component:  Serialization  |       Version:  SVN                 
        Resolution:                 |      Keywords:  xml, deserialization
             Stage:  Accepted       |     Has_patch:  1                   
        Needs_docs:  0              |   Needs_tests:  0                   
Needs_better_patch:  1              |  
------------------------------------+---------------------------------------
Changes (by niall):

  * has_patch:  0 => 1
  * version:  1.0 => SVN
  * needs_tests:  1 => 0

Comment:

 The patch that converts the doctests to unittests contains a single
 failing test (caused by the problem described in the ticket).
 The second diff fixes this by patching xml_serializers.py to handle cases
 where the pk attribute is not defined on an object node. In those cases
 the model is created with pk=None. The second diff also contains tests to
 explicitly cover this case for xml, json and yaml.

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