diff options
| author | Nikita Sobolev <mail@sobolevn.me> | 2020-06-01 11:20:00 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-01 10:20:00 +0200 |
| commit | 682b295c6c3f5a2182bdc8192f0b8b65610fe4b1 (patch) | |
| tree | a0db3488988535ada9bd9c27b59302bcceffaf67 /docs | |
| parent | 19ceabefd451bc8473a8ac96b04b46a436a7c1b5 (diff) | |
Made small improvement to docs/topics/db/multi-db.txt.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/db/multi-db.txt | 4 |
1 files 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 |
