def _save_attachment(attachment, filepath):
 filepath = private_storage.save(filepath, attachment)
 return filepath.split('/')[(-1)]

def _save_attachment ( attachment , filepath ) : filepath = private_storage . save ( filepath , attachment ) return filepath . split ( '/' ) [ ( - 1 ) ]
saves an attachment and returns the filename .