@@ -0,0 +1,768 @@
+# encoding: utf-8%0A%0A%0Aclass DjangoSearchMixin(object):%0A    '''%0A    Make the view class searchable%0A    '''%0A    def get_searcher_class(self):%0A        %22%22%22%0A        Return the class to use for the search.%0A        Defaults to using %60self.searcher_class%60.%0A        %22%22%22%0A        assert self.searcher_class is not None, (%0A            %22'%25s' should either include a %60searcher_class%60 attribute, %22%0A            %22or override the %60get_searcher_class()%60 method.%22%0A            %25 self.__class__.__name__%0A        )%0A%0A        return self.searcher_class%0A%0A    def get_searcher(self, *args, **kwargs):%0A        '''%0A        Return the search instance for building model search query object%0A        '''%0A        searcher_class = self.get_searcher_class()%0A        return searcher_class(*args, **kwargs)%0A

Create mixins.py