FILE_UPLOAD_TOO_LARGE=_noop(u'The file must be smaller than {image_max_size} in size.'.format(image_max_size=user_friendly_size(settings.PROFILE_IMAGE_MAX_BYTES)))# pylint: disable=line-too-long
FILE_UPLOAD_TOO_SMALL=_noop(u'The file must be at least {image_min_size} in size.'.format(image_min_size=user_friendly_size(settings.PROFILE_IMAGE_MIN_BYTES)))# pylint: disable=line-too-long
FILE_UPLOAD_BAD_TYPE=_noop(u'The file must be one of the following types: {valid_file_types}.'.format(valid_file_types=get_valid_file_types()))# pylint: disable=line-too-long
FILE_UPLOAD_BAD_EXT=_noop(u'The file name extension for this file does not match the file data. The file may be corrupted.')# pylint: disable=line-too-long
FILE_UPLOAD_BAD_MIMETYPE=_noop(u'The Content-Type header for this file does not match the file data. The file may be corrupted.')# pylint: disable=line-too-long
classImageValidationError(Exception):
classImageValidationError(Exception):
"""
"""
Exception to use when the system rejects a user-supplied source image.
Exception to use when the system rejects a user-supplied source image.