#NEWLINE# def fill_null_values( self ) : #NEWLINE# #INDENT# ' Fill missing model fields in JSON with {key: null value}.\n\n        Only run for PUT requests.\n        ' #NEWLINE# if ( not self . Model ) : #NEWLINE# #INDENT# log . info ( ( '%s has no model defined' % self . __class__ . __name__ ) ) #NEWLINE# return #NEWLINE# #UNINDENT# empty_values = self . Model . get_null_values ( ) #NEWLINE# for ( field , value ) in empty_values . items ( ) : #NEWLINE# #INDENT# if ( self not in self . _json_params ) : #NEWLINE# #INDENT# self . _json_params [ field ] = value