#NEWLINE# def generate_filename( instance , old_filename ) : #NEWLINE# #INDENT# ' Generate filename ' #NEWLINE# extension = os . path . splitext ( filename ) [ 1 ] #NEWLINE# filename = ( str ( time . time ( ) ) + extension ) #NEWLINE# return ( 'documents/files/' + filename )