def METHOD_NAME(self):
    if self.search_query:
        self.module = self.module.filter(
            location_site__site_code__icontains=self.search_query
        )
    if self.reference:
        self.module = self.module.filter(
            source_reference__in=self.reference
        )
    if self.year_ranges:
        self.module = self.module.filter(**{
            f'{self.date_field}__range': self.year_ranges
        })
    if self.months:
        self.module = self.module.filter(**{
            f'{self.date_field}__month__in': self.months
        })
    if self.reference_category:
        clauses = (
            Q(source_reference__polymorphic_ctype=
                ContentType.objects.get_for_model(
                    LIST_SOURCE_REFERENCES[p])) for p in
            self.reference_category
        )
        reference_category_filter = reduce(operator.or_, clauses)
        self.module = self.module.filter(
            reference_category_filter
        )
    if self.collector:
        collectors = Profile.objects.annotate(
            full_name=Concat('first_name', Value(' '), 'last_name')
        ).filter(full_name__in=self.collector)
        collector_list = list(collectors.values_list('id', flat=True))
        self.module = self.module.filter(
            owner__in=collector_list
        )
    self.sites = LocationSite.objects.filter(
        id__in=
            self.module.exclude(
                location_site__isnull=True
            ).values_list(
                'location_site__id', flat=True
            )
    )
    self.annotate()
    spatial_filters = self.spatial_filter
    if spatial_filters:
        self.sites = self.sites.filter(
            spatial_filters
        )
    if self.get_request_data('polygon'):
        self.sites = self.sites.filter(
            geometry_point__within=self.polygon
        )
    if self.sites and not self.location_sites_raw_query:
        self.location_sites_raw_query = self.sites.annotate(
            site_id=F('id')
        ).values(
            'site_id',
            'geometry_point',
            'name'
        ).query.sql_with_params()