def remove_tmp_prefix_from_filename(filename):
if not filename.startswith(dju_settings.DJU_IMG_UPLOAD_TMP_PREFIX):<EOL><INDENT>raise RuntimeError(ERROR_MESSAGES['<STR_LIT>'] % {'<STR_LIT:filename>': filename})<EOL><DEDENT>return filename[len(dju_settings.DJU_IMG_UPLOAD_TMP_PREFIX):]<EOL>
Remove tmp prefix from filename.