#NEWLINE# def _update_instance( self , data ) : #NEWLINE# #INDENT# '\n            Updates given instance with provided data kwargs.\n        ' #NEWLINE# assert ( data . instance is not None ) , 'Instance object shoud not be None.' #NEWLINE# self . instance . name = data [ 'name' ] #NEWLINE# self . instance . description = data [ 'description' ] #NEWLINE# self . instance . private = data [ 'private' ] #NEWLINE# self . instance . save ( )