#NEWLINE# def update_model_with_dict( obj , fields ) : #NEWLINE# #INDENT# [ setattr ( obj , attr_name , attr_value ) for ( attr_name , attr_value ) in fields . items ( ) ] #NEWLINE# obj . save ( ) #NEWLINE# return attr_name