code: def get_queryset(self, queryset=None):
          
          serializer = self.get_serializer()
          return getattr(self, 'queryset', serializer.Meta.model.objects.all())
docs: Returns a queryset for this request.
  
          Arguments:
            queryset: Optional root-level queryset.