[1.6.x] Fixed #21075 - Improved doc for calling call_command with arguments.

Backport of fca4c4826e from master
This commit is contained in:
oz123 2013-09-10 14:39:51 +02:00 committed by Tim Graham
parent 01ad508514
commit 960f5bc759
1 changed files with 9 additions and 0 deletions

View File

@ -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
==================