~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to django/core/serializers/xml_serializer.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2009-07-29 11:26:28 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20090729112628-9qrzwnl9x32jxhbg
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
            "type" : field.get_internal_type()
66
66
        })
67
67
 
68
 
        # Get a "string version" of the object's data (this is handled by the
69
 
        # serializer base class).
 
68
        # Get a "string version" of the object's data.
70
69
        if getattr(obj, field.name) is not None:
71
 
            value = self.get_string_value(obj, field)
72
 
            self.xml.characters(smart_unicode(value))
 
70
            self.xml.characters(field.value_to_string(obj))
73
71
        else:
74
72
            self.xml.addQuickElement("None")
75
73