def get_template_names(self):
        """
        Dispatch template according to the kind of request: ajax or normal.
        """
        if self.request.is_ajax():
            return [self.list_template_name]
        else:
            return super(Search, self).get_template_names()
def get_template_names ( self ) : if self . request . is_ajax ( ) : return [ self . list_template_name ] else : return super ( Search , self ) . get_template_names ( )
Dispatch template according to the kind of request: ajax or normal.