From 20eb900065f0ce61894c4cb45ed0ab8293aea68d Mon Sep 17 00:00:00 2001 From: Peter Bwire Date: Fri, 5 Dec 2014 18:08:47 +0300 Subject: [PATCH] Update django_manage to add database option for migrate Allow passing the database option to the django_manage module for migrations. This is usefull in situations where multiple databases are used by a django application. --- lib/ansible/modules/web_infrastructure/django_manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/web_infrastructure/django_manage.py b/lib/ansible/modules/web_infrastructure/django_manage.py index 580cc63c2dd..3e34a6388c0 100644 --- a/lib/ansible/modules/web_infrastructure/django_manage.py +++ b/lib/ansible/modules/web_infrastructure/django_manage.py @@ -170,7 +170,7 @@ def main(): syncdb=('database', ), test=('failfast', 'testrunner', 'liveserver', 'apps', ), validate=(), - migrate=('apps', 'skip', 'merge'), + migrate=('apps', 'skip', 'merge', 'database',), collectstatic=('link', ), )