summaryrefslogtreecommitdiff
path: root/docs
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:14 -0400
commit960f5bc75901f76e9b4b356f98b22b494fb47611 (patch)
tree58769c2aac78e13cc4d16517df074cd82a910999 /docs
parent01ad5085148bf7dcfc3af4d05cc8c262680f85d9 (diff)
[1.6.x] Fixed #21075 - Improved doc for calling call_command with arguments.
Backport of fca4c4826e from master
Diffstat (limited to 'docs')
-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 bd17adfa99..b487bea7ad 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1616,6 +1616,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
==================