'Allow any relation between two objects in the db pool'

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

    db_list = ('slave', 'default')
    if ((obj1._state.db in db_list) and (obj2._state.db in db_list)):
        return True
    return None
