summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroz123 <nahumoz@gmail.com>2013-09-10 14:39:51 +0200
committerTim Graham <timograham@gmail.com>2013-09-10 09:18:20 -0400
commit693ebff1a4f5eeda56279188ee473be6a1088e46 (patch)
tree1b86823b833cb03c76fe11b34e8e8559b367ea64
parentaa50b7e8373031838c4d1d5fa7da809d3c20dc23 (diff)
[1.5.x] Fixed #21075 - Improved doc for calling call_command with arguments.
Backport of fca4c4826e from master
-rw-r--r--docs/ref/django-admin.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 2146484aa1..4552440394 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1530,6 +1530,15 @@ Examples::
management.call_command('flush', verbosity=0, interactive=False)
management.call_command('loaddata', 'test_data', verbosity=0)
+Note that command options that take no arguments are passed as keywords
+with ``True`` or ``False``::
+
+ management.call_command('dumpdata', use_natural_keys=True)
+
+Command options which take multiple options are passed a list::
+
+ management.call_command('dumpdata', exclude=['contenttypes', 'auth'])
+
Output redirection
==================