From 960f5bc75901f76e9b4b356f98b22b494fb47611 Mon Sep 17 00:00:00 2001 From: oz123 Date: Tue, 10 Sep 2013 14:39:51 +0200 Subject: [PATCH] [1.6.x] Fixed #21075 - Improved doc for calling call_command with arguments. Backport of fca4c4826e from master --- 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 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 ==================