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


# File model
Generate filename
dataset/ETHPy150Open treeio/treeio/treeio/documents/models.py/generate_filename