          return obj
      raise ValueError("{0} is not a Django model".format(obj))
  
  
  def get_related_model(field):
      if django.VERSION < (1, 9):
          return _resolve_model(field.rel.to)
      return field.remote_field.model
 
</s> remove             (request.user.is_authenticated() or not self.authenticated_users_only) and
 </s> add             (is_authenticated(request.user) or not self.authenticated_users_only) and </s> remove         if request.user.is_authenticated():
 </s> add         if is_authenticated(request.user): </s> remove         return request.user and request.user.is_authenticated()
 </s> add         return request.user and is_authenticated(request.user) </s> remove         if request.user.is_authenticated():
 </s> add         if is_authenticated(request.user): </s> remove             request.user.is_authenticated()
 </s> add             is_authenticated(request.user)
def is_authenticated(user):
    if django.VERSION < (1, 10):
        return user.is_authenticated()
    return user.is_authenticated


          return obj
      raise ValueError("{0} is not a Django model".format(obj))
  
  
def is_authenticated(user):
    if django.VERSION < (1, 10):
        return user.is_authenticated()
    return user.is_authenticated


  def get_related_model(field):
      if django.VERSION < (1, 9):
          return _resolve_model(field.rel.to)
      return field.remote_field.model
keep keep keep add keep keep keep keep
 Access `request.user.is_authenticated` as property not method, under Django 1.10+ (#4358)

* For Django >=1.10 use user.is_authenticated, not user.is_authenticated() 
rest_framework/compat.py