title: How to re use the code from a class based view - Django Rest Framework
body: <p>I'm new to Django/Django rest framework class-based view. If it is a repeated question kindly excuse.</p>
  
  <p>Consider I have a class-based views like this.</p>
  
  <pre><code>class UserBucket(APIView):
      def get(self, request):
          ...
          ...
          return Response(some_data)
      def put(self, request):
          ...
          ...
          return Response(some_data)
  
  class FilterView(APIView):
      def get(self, request):
          data_to_filter = request.query_params.get('filterData')
          # filter logic goes here
          ...
          ...
          return Response(filtred_data)
  
  </code></pre>
  
  <p>If I want to use this FilterView code in the UserBucket's put method so that I can maintain DRY principle how can I achieve it? 
  What I really want to do here is that from UserBucket put method I want to call the FilterView's get method with few arguments and get back the result.</p>