  from django.conf import settings
  from django.core.exceptions import ValidationError as DjangoValidationError
  from django.core.exceptions import ObjectDoesNotExist
  from django.core.validators import (
      EmailValidator, MaxLengthValidator, MaxValueValidator, MinLengthValidator,
      MinValueValidator, RegexValidator, URLValidator, ip_address_validators
  )
  from django.forms import FilePathField as DjangoFilePathField
  from django.forms import ImageField as DjangoImageField
  from django.utils import six, timezone
  from django.utils.dateparse import (
 
</s> remove from django.core.exceptions import ImproperlyConfigured
 </s> add from django.core.exceptions import ImproperlyConfigured, ValidationError
from django.core.validators import \
    MaxLengthValidator as DjangoMaxLengthValidator
from django.core.validators import MaxValueValidator as DjangoMaxValueValidator
from django.core.validators import \
    MinLengthValidator as DjangoMinLengthValidator
from django.core.validators import MinValueValidator as DjangoMinValueValidator </s> remove     InvalidTimeError, get_remote_field, unicode_repr, unicode_to_repr,
    value_from_object
 </s> add     InvalidTimeError, MaxLengthValidator, MaxValueValidator,
    MinLengthValidator, MinValueValidator, get_remote_field, unicode_repr,
    unicode_to_repr, value_from_object </s> remove             message = self.error_messages['max_length'].format(max_length=max_length)
            self.validators.append(MaxLengthValidator(max_length, message=message))
 </s> add             message = lazy(
                self.error_messages['max_length'].format,
                six.text_type)(max_length=self.max_length)
            self.validators.append(
                MaxLengthValidator(self.max_length, message=message)) </s> remove             message = self.error_messages['min_value'].format(min_value=self.min_value)
            self.validators.append(MinValueValidator(self.min_value, message=message))
 </s> add             message = lazy(
                self.error_messages['min_value'].format,
                six.text_type)(min_value=self.min_value)
            self.validators.append(
                MinValueValidator(self.min_value, message=message))
    EmailValidator, RegexValidator, URLValidator, ip_address_validators
  from django.conf import settings
  from django.core.exceptions import ValidationError as DjangoValidationError
  from django.core.exceptions import ObjectDoesNotExist
  from django.core.validators import (
    EmailValidator, RegexValidator, URLValidator, ip_address_validators
    EmailValidator, RegexValidator, URLValidator, ip_address_validators
  )
  from django.forms import FilePathField as DjangoFilePathField
  from django.forms import ImageField as DjangoImageField
  from django.utils import six, timezone
  from django.utils.dateparse import (
keep keep keep keep replace replace keep keep keep keep keep
 Defer translated string evaluation on validators.  (#5452)

* Customize validators to defer error string evaluation.

* Add docstring for `CustomValidatorMessage` 
rest_framework/fields.py