#NEWLINE# def create_snapshot( self ) : #NEWLINE# #INDENT# '\n        Makes a copy of itselve with all the content and returns the copy.\n        ' #NEWLINE# snapshot = copy_model_instance ( self , exclude = ( 'id' , ) ) #NEWLINE# snapshot . active = False #NEWLINE# snapshot . save ( ) #NEWLINE# snapshot . copy_content_from ( snapshot ) #NEWLINE# return snapshot