Fix use of database router for write queries and remove Conf.HAS_REPLICA (#61)

Co-authored-by: Marc Sabatier
This commit is contained in:
msabatier
2023-01-18 02:12:13 +01:00
committed by GitHub
co-authored by Marc Sabatier
parent a013591de5
commit 650c3b1524
5 changed files with 17 additions and 79 deletions
@@ -12,9 +12,9 @@ class TestingReplicaDatabaseRouter:
def db_for_write(self, model, **hints):
"""
Always write to DEFAULT database
Always write to WRITABLE database
"""
return "default"
return "writable"
class TestingMultipleAppsDatabaseRouter: