示例#1
0
    def get_search_text(self, instance):
        """
        Return a custom search text for a given instance.

        .. note:: This method is called when :attr:`search_fields` is set.
        """
        bits = get_search_field_values(instance)
        return clean_join(u" ", bits)
    def get_search_text(self, instance):
        """
        Return a custom search text for a given instance.

        .. note:: This method is called when :attr:`search_fields` is set.
        """
        bits = get_search_field_values(instance)
        return clean_join(u" ", bits)