Returns search fields in sfdict

def get_search_fields(cls):
        """
        Returns search fields in sfdict
        """
        sfdict = {}
        for klass in tuple(cls.__bases__) + (cls, ):
            if hasattr(klass, 'search_fields'):
                sfdict.update(klass.search_fields)
        return sfdict