title: Allow both authenticated and unauthenticated users access a django rest view with token authentication decorator
body: <p>I am working with django rest, I however have an issue in one of my views because, i want to allow both authenticated users and unauthenticated users access the view then check if the user is authenticated then there are some special events to be done by the celery tasks, however, whenever i add the decorator for the authentication_classes, unauthenticated users can no longer visit the page even after setting the permission_classes to allow all
  simply my code is here, hope someone can know what i need to add or remove</p>
  
  <pre><code>@api_view(['GET'])
  @permission_classes([AllowAny])
  @authentication_classes([TokenAuthentication])
  def item_details(request, pk): 
      if request.user.is_authenticated:
          #here some tasks
  
  </code></pre>
  
  <p>the main issue is that it seams that TokenAuthentication just nullify AllowAny and takes over the checking of the permisssion class
  or is there something am doing wrong?</p>