all_q is not needed as param , you can define function as 

    def get_search_category_part(self, field_value):

and return None or Q(...),