def get_comment_image_name(instance, filename): random_name = random.randint(1, 9999999) name, ext = get_filename_ext(filename) full_name = '{name}{ext}'.format(name=random_name, ext=ext) return 'blog/comment/{full_name}'.format(full_name=full_name)
def new_user_image_name(instance, filename): digits = random.randint(1, 888888) name, ext = get_filename_ext(filename) final_name = '{name}{ext}'.format(name=digits, ext=ext) return 'account/{final_name}'.format(final_name=final_name)
def get_team_image_name(instance, filename): digits = random.randint(800, 111111) name, ext = get_filename_ext(filename) final_name = '{name}{ext}'.format(name=digits, ext=ext) return 'team/{final_name}'.format(final_name=final_name)
def get_portfolio_image_name(instance, filename): digits = random.randint(500, 8888) name, ext = get_filename_ext(filename) final_name = '{name}{ext}'.format(name=digits, ext=ext) return 'portfolio/{final_name}'.format(final_name=final_name)
def get_logo_image_name(instance, filename): digits = random.randint(1, 500) img_name = 'logo-' + str(digits) name, ext = get_filename_ext(filename) final_name = '{name}{ext}'.format(name=img_name, ext=ext) return 'logo/{final_name}'.format(final_name=final_name)
def get_whoweare_image_name(instance, filename): digits = random.randint(1, 500) name, ext = get_filename_ext(filename) final_name = '{name}{ext}'.format(name=name, ext=ext) return 'whoweare/{final_name}'.format(final_name=final_name)
def get_banner_image_name(instance, filename): digints = random.randint(1, 999999) name, ext = get_filename_ext(filename) final_name = '{name}{ext}'.format(name=digints, ext=ext) return 'banner/{final_name}'.format(final_name=final_name)
def get_feature_image_name(instance, filename): digits = random.randint(1, 5000) new_name = 'feature' + str(digits) name, ext = get_filename_ext(filename) final_name = '{name}{ext}'.format(name=new_name, ext=ext) return 'feature/{final_name}'.format(final_name=final_name)
def get_service_image_name(instance, filename): digits = random.randint(100, 500000) name, ext = get_filename_ext(filename) final_name = '{name}{ext}'.format(name=digits, ext=ext) return 'service/{final_name}'.format(final_name=final_name)