summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Ribeiro da Silva <bruno@e3c.com.br>2014-04-25 13:27:48 -0300
committerTim Graham <timograham@gmail.com>2014-04-30 07:20:44 -0400
commit72493b1b7c43ffdcb3f2ce2d0f055ebb49485f4b (patch)
tree296167fa603b17b1ab7bce4f5634b8e7ab6adcfc
parentcda5745df0e9301c65e13f552ee19a4bf0490997 (diff)
[1.7.x] Fixed #22511 -- Added args to migrations management commands.
Backport of 83413c53d2 from master
-rw-r--r--django/core/management/commands/makemigrations.py1
-rw-r--r--django/core/management/commands/migrate.py1
-rw-r--r--django/core/management/commands/squashmigrations.py1
3 files changed, 3 insertions, 0 deletions
diff --git a/django/core/management/commands/makemigrations.py b/django/core/management/commands/makemigrations.py
index bdf0b2fe77..1a4f96cf9c 100644
--- a/django/core/management/commands/makemigrations.py
+++ b/django/core/management/commands/makemigrations.py
@@ -27,6 +27,7 @@ class Command(BaseCommand):
help = "Creates new migration(s) for apps."
usage_str = "Usage: ./manage.py makemigrations [--dry-run] [app [app ...]]"
+ args = "[app_label [app_label ...]]"
def handle(self, *app_labels, **options):
diff --git a/django/core/management/commands/migrate.py b/django/core/management/commands/migrate.py
index 50da31e11e..866453a442 100644
--- a/django/core/management/commands/migrate.py
+++ b/django/core/management/commands/migrate.py
@@ -35,6 +35,7 @@ class Command(BaseCommand):
)
help = "Updates database schema. Manages both apps with migrations and those without."
+ args = "[app_label] [migration_name]"
def handle(self, *args, **options):
diff --git a/django/core/management/commands/squashmigrations.py b/django/core/management/commands/squashmigrations.py
index e099c663cd..3101ca0b14 100644
--- a/django/core/management/commands/squashmigrations.py
+++ b/django/core/management/commands/squashmigrations.py
@@ -20,6 +20,7 @@ class Command(BaseCommand):
help = "Squashes an existing set of migrations (from first until specified) into a single new one."
usage_str = "Usage: ./manage.py squashmigrations app migration_name"
+ args = "app_label migration_name"
def handle(self, app_label=None, migration_name=None, **options):