human
Solve the following python programming problem given the following code:
def _get_inheritance_relation_fields_and_models(self) : 
    'helper function for __init__:
        determine names of all Django inheritance accessor member functions for type(self)' 
    def add_model(model, field_name, result) : 
        result [field_name] = model 
def add_model_if_regular(model, field_name, result) : 
        if (issubclass (model, models.Model) and (model != models.Model) and (model != self.__class__) and (model != PolymorphicModel)) : 
            add_model (model, field_name, result) 
def add_all_super_models(model, result) : 
        for (super_cls, field_to_super) in model._meta.parents.items () : 
            if (field_to_super is not None) : 
                field_name = field_to_super.name 
                add_model_if_regular (super_cls, field_name, result) 
                add_all_super_models (super_cls, result) 
def add_all_sub_models(super_cls, result) : 
        for sub_cls in super_cls.__subclasses__ () : 
            if (super_cls in sub_cls._meta.parents) : 
                field_to_super = sub_cls._meta.parents [super_cls] 
                if (field_to_super is not None) : 
                    super_to_sub_related_field = field_to_super.rel 
                    if (super_to_sub_related_field.related_name is None) : 
                        to_subclass_fieldname = sub_cls.__name__.lower () 
else : 
                        to_subclass_fieldname = super_to_sub_related_field.related_name 
add_model_if_regular (sub_cls, to_subclass_fieldname, result) 
result = { 
        
} 
    add_all_super_models (self.__class__, result) 
    add_all_sub_models (self.__class__, add_model_if_regular) 
    return result 

    
    

    Fix the buggy line: add_all_sub_models (self.__class__, add_model_if_regular)
assistant
#Here is Python code to determine names of all Django inheritance accessor member functions for type(self)' 
.

add_all_sub_models (self.__class__, result)