  
  
  # Robust filter and exist implementations. Ensures that queryset.exists() for
  # an invalid value returns `False`, rather than raising an error.
  # Refs https://github.com/tomchristie/django-rest-framework/issues/3381
  
  def qs_exists(queryset):
      try:
          return queryset.exists()
      except (TypeError, ValueError, DataError):
 
</s> remove         # See https://github.com/tomchristie/django-rest-framework/issues/1954
        # and https://github.com/tomchristie/django-rest-framework/pull/4489
 </s> add         # See https://github.com/encode/django-rest-framework/issues/1954
        # and https://github.com/encode/django-rest-framework/pull/4489 </s> remove         # See https://github.com/tomchristie/django-rest-framework/issues/4608
 </s> add         # See https://github.com/encode/django-rest-framework/issues/4608 </s> remove         # https://github.com/tomchristie/django-rest-framework/issues/705
 </s> add         # https://github.com/encode/django-rest-framework/issues/705 </s> remove         Regression test for https://github.com/tomchristie/django-rest-framework/pull/3164
 </s> add         Regression test for https://github.com/encode/django-rest-framework/pull/3164 </s> remove         See: https://github.com/tomchristie/django-rest-framework/issues/1708
 </s> add         See: https://github.com/encode/django-rest-framework/issues/1708
# Refs https://github.com/encode/django-rest-framework/issues/3381
  
  
  # Robust filter and exist implementations. Ensures that queryset.exists() for
  # an invalid value returns `False`, rather than raising an error.
# Refs https://github.com/encode/django-rest-framework/issues/3381
  
  def qs_exists(queryset):
      try:
          return queryset.exists()
      except (TypeError, ValueError, DataError):
keep keep keep keep replace keep keep keep keep keep
 Update links after moving to encode org 
rest_framework/validators.py