예제 #1
0
파일: actions.py 프로젝트: m5wdev/monolit
def actions_partner_logo_upload_path(instance, filename):
    filename = FileProcessing(filename)
    if instance.name:
        filename = filename.newFileNameFromField(instance.name, 'logo', None)
        return 'actions-partners/{filename}'.format(filename=filename)
    else:
        # TODO: Show message
        pass
예제 #2
0
def logo_upload_path(instance, filename):
    filename = FileProcessing(filename)
    filename = filename.newFileNameFromField(instance.name, None, 'logo')
    return 'mortgage/banks/{filename}'.format(filename=filename)