(self, mobile_user_and_group_slugs, can_access_all_locations, accessible_location_ids)
return filter_builder.get_filters(
            can_access_all_locations,
            accessible_location_ids,
            self._get_group_ids(mobile_user_and_group_slugs),
            self._get_selected_es_user_types(mobile_user_and_group_slugs),
            self._get_user_ids(mobile_user_and_group_slugs),
            self._get_locations_ids(mobile_user_and_group_slugs),
            self.cleaned_data['date_range'],
        )
:param mobile_user_and_group_slugs: slug from request like
        ['g__e80c5e54ab552245457d2546d0cdbb03', 'g__e80c5e54ab552245457d2546d0cdbb04',
        'u__e80c5e54ab552245457d2546d0cdbb05', 't__1']
        :param can_access_all_locations: if request user has full organization access permission
        :return: set of form filters for export
        :filters:
        OR
            for full access:
                group's user ids via GroupFormSubmittedByFilter,
                users under user types,
                users by user_ids,
                users at locations and their descendants
            for restrict access:
                users by user_ids
                users at locations and their descendants
        AND
            datespan filter
:param mobile_user_and_group_slugs: slug from request like
        ['g__e80c5e54ab552245457d2546d0cdbb03', 'g__e80c5e54ab552245457d2546d0cdbb04',
        'u__e80c5e54ab552245457d2546d0cdbb05', 't__1']
        :param can_access_all_locations: if request user has full organization access permission
        :return: set of form filters for export
        :filters:
        OR
            for full access:
                group's user ids via GroupFormSubmittedByFilter,
                users under user types,
                users by user_ids,
                users at locations and their descendants
            for restrict access:
                users by user_ids
                users at locations and their descendants
        AND
            datespan filter
: param mobile_user_and_group_slugs : slug from request like [ g__e80c5e54ab552245457d2546d0cdbb03 g__e80c5e54ab552245457d2546d0cdbb04 u__e80c5e54ab552245457d2546d0cdbb05 t__1 ] : param can_access_all_locations : if request user has full organization access permission : return : set of form filters for export : filters : OR for full access : group s user ids via GroupFormSubmittedByFilter users under user types users by user_ids users at locations and their descendants for restrict access : users by user_ids users at locations and their descendants AND datespan filter
def get_model_filter(self, mobile_user_and_group_slugs, can_access_all_locations, accessible_location_ids):
        """
        :param mobile_user_and_group_slugs: slug from request like
        ['g__e80c5e54ab552245457d2546d0cdbb03', 'g__e80c5e54ab552245457d2546d0cdbb04',
        'u__e80c5e54ab552245457d2546d0cdbb05', 't__1']
        :param can_access_all_locations: if request user has full organization access permission
        :return: set of form filters for export
        :filters:
        OR
            for full access:
                group's user ids via GroupFormSubmittedByFilter,
                users under user types,
                users by user_ids,
                users at locations and their descendants
            for restrict access:
                users by user_ids
                users at locations and their descendants
        AND
            datespan filter
        """
        filter_builder = FormExportFilterBuilder(self.domain_object, self.timezone)
        return filter_builder.get_filters(
            can_access_all_locations,
            accessible_location_ids,
            self._get_group_ids(mobile_user_and_group_slugs),
            self._get_selected_es_user_types(mobile_user_and_group_slugs),
            self._get_user_ids(mobile_user_and_group_slugs),
            self._get_locations_ids(mobile_user_and_group_slugs),
            self.cleaned_data['date_range'],
        )
def get_model_filter ( self , mobile_user_and_group_slugs , can_access_all_locations , accessible_location_ids ) : filter_builder = FormExportFilterBuilder ( self . domain_object , self . timezone ) return filter_builder . get_filters ( can_access_all_locations , accessible_location_ids , self . _get_group_ids ( mobile_user_and_group_slugs ) , self . _get_selected_es_user_types ( mobile_user_and_group_slugs ) , self . _get_user_ids ( mobile_user_and_group_slugs ) , self . _get_locations_ids ( mobile_user_and_group_slugs ) , self . cleaned_data [ 'date_range' ] , )