code: def apply_filters(self, queryset, applicable_filters=None, applicable_exclusions=None):
          
          if applicable_filters:
              queryset = queryset.filter(applicable_filters)
          if applicable_exclusions:
              queryset = queryset.exclude(applicable_exclusions)
          return queryset
docs: Apply constructed filters and excludes and return the queryset
  
          :param queryset: queryset to filter
          :param applicable_filters: filters which are passed directly to queryset.filter()
          :param applicable_exclusions: filters which are passed directly to queryset.exclude()
          :returns filtered queryset