def allow_relation(self, obj1, obj2, **hints):
        """
        Allow any relation between two objects in the slave pool or the master.
        """
        pool = self.pool + [self.master]
        if obj1._state.db in pool and obj2._state.db in pool:
            return True
        return None
dataset/ETHPy150Open michaelhelmick/django-balancer/balancer/mixins.py/MasterSlaveMixin.allow_relation/original