Ticket #15488: django.patch
File django.patch, 725 bytes (added by , 14 years ago) |
---|
-
django/core/serializers/xml_serializer.py
121 121 natural = value.natural_key() 122 122 # Iterable natural keys are rolled out as subelements 123 123 self.xml.startElement("object", {}) 124 if not type(natural) == type((1,)): 125 natural = (natural,) 124 126 for key_value in natural: 125 127 self.xml.startElement("natural", {}) 126 128 self.xml.characters(smart_unicode(key_value))