コード例 #1
0
def get_file_name(instance, filename):
    """ Returns a unique filename for uploaded team photos. """
    filename = make_unique_filename(filename)
    return os.path.join(settings.TEAMS_PHOTO_DIR, filename)
コード例 #2
0
def get_file_name(instance, filename):
    """ Returns a unique filename for uploaded offer images."""
    filename = make_unique_filename(filename)
    return os.path.join(settings.OFFERS_IMAGE_DIR, filename)
コード例 #3
0
def get_file_name(instance, filename):
    """ Returns a unique filename for uploaded documents."""
    filename = make_unique_filename(filename)
    return os.path.join(settings.DOCUMENTS_DIR, filename)
コード例 #4
0
def get_file_name(instance, filename):
    """ Returns a unique filename for uploaded team photos. """
    filename = make_unique_filename(filename)
    return os.path.join(TEAM_PHOTO_DIR, filename)
コード例 #5
0
def get_file_name(instance, filename):
    """ Returns a unique filename for profile pictures."""
    filename = make_unique_filename(filename)
    return os.path.join(member_settings.MEMBERS_PHOTO_DIR, filename)
コード例 #6
0
ファイル: member.py プロジェクト: cshc/cshc_website
def get_file_name(instance, filename):
    """ Returns a unique filename for profile pictures."""
    filename = make_unique_filename(filename)
    return os.path.join("uploads/profile_pics", filename)