Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…uments.

Backport of fca4c48 from master
  • Loading branch information...
commit 960f5bc75901f76e9b4b356f98b22b494fb47611 1 parent 01ad508
@oz123 oz123 authored timgraham committed
Showing with 9 additions and 0 deletions.
  1. +9 −0 docs/ref/django-admin.txt
View
9 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
==================
Please sign in to comment.
Something went wrong with that request. Please try again.