From fca4c4826e7b4cec84c3f8140bb929e38eea962c Mon Sep 17 00:00:00 2001 From: oz123 Date: Tue, 10 Sep 2013 14:39:51 +0200 Subject: [PATCH] Fixed #21075 - Improved doc for calling call_command with arguments. --- docs/ref/django-admin.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 93fc4de4ab..5bc9a2b83e 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1638,6 +1638,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 ==================