'Called to handle each field on an object (except for ForeignKeys and
ManyToManyFields)'

def handle_field(self, obj, field):

    self.indent(2)
    self.xml.startElement(u'field', {u'name': field.name, u'type': field.get_internal_type()})
    if (getattr(obj, field.name) is not None):
        self.xml.characters(field.value_to_string(obj))
    else:
        self.xml.addQuickElement(u'None')
    self.xml.endElement(u'field')
