title: django filter on APIView
body: <p>I have a APIView class for showing all the rents and posting and delete etc. Now i want search feature so i tried to use DjangoFilterBackend but it is not working. I see in documentation, it has been used with ListAPIView but how can i use it in APIView. </p>
  
  <pre><code>class Rent(APIView):
      """
      List all the rents if token is not provided else a token specific rent
      """
      serializer_class = RentSerializer
      filter_backends = (DjangoFilterBackend,)
      filter_fields = ('city', 'place', 'property_category',)
      search_fields = ('=city', '=place')
      def get(self, request, token=None, format=None):
          reply={}
          try:
              rents = Rental.objects.all()
              if token:
                  rent = Rental.objects.get(token=token)
                  reply['data'] = self.serializer_class(rent).data
              else:
                  reply['data'] = self.serializer_class(rents, many=True).data
          except Rental.DoesNotExist:
              return error.RequestedResourceNotFound().as_response()
          except:
              return error.UnknownError().as_response()
          else:
              return Response(reply, status.HTTP_200_OK)
  </code></pre>
  
  <p>when i search the rent with the following parameters in the url, i get all the rents, instead i should get only those rents that lies in city Kathmandu and place koteshwor</p>
  
  <p><a href="http://localhost:8000/api/v1/rents?city=Kathmandu&amp;place=Koteshwor" rel="noreferrer">http://localhost:8000/api/v1/rents?city=Kathmandu&amp;place=Koteshwor</a></p>