  from django.utils.translation import ugettext_lazy as _
  
  from rest_framework import ISO_8601
  from rest_framework.compat import (
      InvalidTimeError, get_remote_field, unicode_repr, unicode_to_repr,
      value_from_object
  )
  from rest_framework.exceptions import ErrorDetail, ValidationError
  from rest_framework.settings import api_settings
  from rest_framework.utils import html, humanize_datetime, json, representation
  
 
</s> remove     EmailValidator, MaxLengthValidator, MaxValueValidator, MinLengthValidator,
    MinValueValidator, RegexValidator, URLValidator, ip_address_validators
 </s> add     EmailValidator, RegexValidator, URLValidator, ip_address_validators </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             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))
    InvalidTimeError, MaxLengthValidator, MaxValueValidator,
    MinLengthValidator, MinValueValidator, get_remote_field, unicode_repr,
    unicode_to_repr, value_from_object
  from django.utils.translation import ugettext_lazy as _
  
  from rest_framework import ISO_8601
  from rest_framework.compat import (
    InvalidTimeError, MaxLengthValidator, MaxValueValidator,
    MinLengthValidator, MinValueValidator, get_remote_field, unicode_repr,
    unicode_to_repr, value_from_object
    InvalidTimeError, MaxLengthValidator, MaxValueValidator,
    MinLengthValidator, MinValueValidator, get_remote_field, unicode_repr,
    unicode_to_repr, value_from_object
  )
  from rest_framework.exceptions import ErrorDetail, ValidationError
  from rest_framework.settings import api_settings
  from rest_framework.utils import html, humanize_datetime, json, representation
  
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