From 682b295c6c3f5a2182bdc8192f0b8b65610fe4b1 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 1 Jun 2020 11:20:00 +0300 Subject: [PATCH] Made small improvement to docs/topics/db/multi-db.txt. --- docs/topics/db/multi-db.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt index be660cfcc2..8a41153038 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