コード例 #1
0
ファイル: pluginbase.py プロジェクト: Hrishi-3331/StudyPoint
    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)
コード例 #2
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)