'Sets the result class to use for results.
Overrides any previous usages. If ``None`` is provided, Haystack will
revert back to the default ``SearchResult`` object.'

def set_result_class(self, klass):

    if (klass is None):
        klass = SearchResult
    self.result_class = klass
