Skip to content
Browse files

Fixed #21075 - Improved doc for calling call_command with arguments.

  • Loading branch information...
1 parent af67ce5 commit fca4c4826e7b4cec84c3f8140bb929e38eea962c @oz123 oz123 committed with timgraham
Showing with 9 additions and 0 deletions.
  1. +9 −0 docs/ref/django-admin.txt
9 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

0 comments on commit fca4c48

Please sign in to comment.
Something went wrong with that request. Please try again.