#NEWLINE# def get_db_prep_value( self , value , connection , prepared = False ) : #NEWLINE# #INDENT# if ( ( self is None ) or ( value == '' ) ) : #NEWLINE# #INDENT# return value #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# value = json . dumps ( dict ( value ) ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# value = None #NEWLINE# #UNINDENT# return value