mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
postgres back tests can't do this
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from django.db import connection
|
from django.db import connection
|
||||||
from django.db.models.signals import post_migrate
|
from django.db.models.signals import post_migrate
|
||||||
from django.apps import apps
|
from django.apps import apps
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
def app_post_migration(sender, app_config, **kwargs):
|
def app_post_migration(sender, app_config, **kwargs):
|
||||||
@@ -17,7 +18,8 @@ def app_post_migration(sender, app_config, **kwargs):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
post_migrate.connect(app_post_migration, sender=apps.get_app_config('main'))
|
if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.sqlite3':
|
||||||
|
post_migrate.connect(app_post_migration, sender=apps.get_app_config('main'))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user