'Disable relations if the model is StudentModuleHistoryExtended.'

def allow_relation(self, obj1, obj2, **hints):

    if (self._is_csmh(obj1) or self._is_csmh(obj2)):
        return False
    return None
