mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 07:58:12 +08:00
Fix use of database router for write queries and remove Conf.HAS_REPLICA (#61)
Co-authored-by: Marc Sabatier
This commit is contained in:
co-authored by
Marc Sabatier
parent
a013591de5
commit
650c3b1524
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user