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)
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)
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)
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)
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)
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)