  
  import django
  from django.apps import apps
  from django.conf import settings
  from django.core.exceptions import ImproperlyConfigured
  from django.db import connection, models, transaction
  from django.template import Context, RequestContext, Template
  from django.utils import six
  from django.views.generic import View
  
 
</s> remove     EmailValidator, MaxLengthValidator, MaxValueValidator, MinLengthValidator,
    MinValueValidator, RegexValidator, URLValidator, ip_address_validators
 </s> add     EmailValidator, RegexValidator, URLValidator, ip_address_validators </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))
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
  
  import django
  from django.apps import apps
  from django.conf import settings
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
  from django.db import connection, models, transaction
  from django.template import Context, RequestContext, Template
  from django.utils import six
  from django.views.generic import View
  
keep keep keep keep 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/compat.py