diff options
| author | oz123 <nahumoz@gmail.com> | 2013-09-10 14:39:51 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-09-10 09:17:47 -0400 |
| commit | fca4c4826e7b4cec84c3f8140bb929e38eea962c (patch) | |
| tree | 18972996be44435a0f0895967e9060cee5b4861f /docs | |
| parent | af67ce5e18525ba52ee4533229468ed07f912536 (diff) | |
Fixed #21075 - Improved doc for calling call_command with arguments.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 9 |
1 files changed, 9 insertions, 0 deletions
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 ================== |
