diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt index be660cfcc2d..8a41153038e 100644 --- a/docs/topics/db/multi-db.txt +++ b/docs/topics/db/multi-db.txt @@ -373,8 +373,8 @@ from:: Relations between objects are allowed if both objects are in the primary/replica pool. """ - db_list = ('primary', 'replica1', 'replica2') - if obj1._state.db in db_list and obj2._state.db in db_list: + db_set = {'primary', 'replica1', 'replica2'} + if obj1._state.db in db_set and obj2._state.db in db_set: return True return None