call the self.xml.addQuickElement method with 2 arguments: string 'object' and attr dictionary containing 1 entry:
self . xml . addQuickElement ( "object" , attrs = { 'pk' : smart_text ( value . _get_pk_val ( ) ) } )