mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Fix tests for multiple database support.
This commit is contained in:
parent
12af4d45a0
commit
9be61a84a1
2 changed files with 2 additions and 1 deletions
|
|
@ -33,6 +33,6 @@ class PostgresRouter(object):
|
|||
Make sure the postgres app only appears in the 'postgres db'
|
||||
database.
|
||||
"""
|
||||
if model_name.startswith('postgres'):
|
||||
if model_name and model_name.startswith('postgres'):
|
||||
return db == 'postgres'
|
||||
return None
|
||||
|
|
|
|||
|
|
@ -575,6 +575,7 @@ class CharfieldTextfieldModelTest(TestCase):
|
|||
|
||||
|
||||
class PostgresArrayFieldModelTest(TestCase):
|
||||
databases = '__all__'
|
||||
|
||||
def setUp(self):
|
||||
self.obj = PostgresArrayFieldModel.objects.create(
|
||||
|
|
|
|||
Loading…
Reference in a new issue