  from __future__ import unicode_literals
  
  from django.http import Http404
  
  SAFE_METHODS = ('GET', 'HEAD', 'OPTIONS')
  
  
  class BasePermission(object):
 
</s> remove             request.user.is_authenticated()
 </s> add             is_authenticated(request.user) </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         if request.user.is_authenticated():
 </s> add         if is_authenticated(request.user):
from rest_framework.compat import is_authenticated


  from __future__ import unicode_literals
  
  from django.http import Http404
  
from rest_framework.compat import is_authenticated


  SAFE_METHODS = ('GET', 'HEAD', 'OPTIONS')
  
  
  class BasePermission(object):
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/permissions.py