#NEWLINE# def end_object( self , obj ) : #NEWLINE# #INDENT# entry = { #NEWLINE# #INDENT# 'collection' : smart_unicode ( obj . _meta . collection ) , #NEWLINE# 'pk' : smart_unicode ( obj . _get_pk_val ( ) , strings_only = True ) , #NEWLINE# 'natural_key' : obj . natural_key , #NEWLINE# 'natural_key_hash' : obj . natural_key_hash , #NEWLINE# 'fields' : self . _current , #NEWLINE# #UNINDENT# } #NEWLINE# self . objects . append ( entry ) #NEWLINE# self . _current = None