Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
Oz authored timgraham committed

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  docs/ref/django-admin.txt
9  docs/ref/django-admin.txt
@@ -1616,6 +1616,15 @@ Examples::
1616 1616
       management.call_command('flush', verbosity=0, interactive=False)
1617 1617
       management.call_command('loaddata', 'test_data', verbosity=0)
1618 1618
 
  1619
+Note that command options that take no arguments are passed as keywords
  1620
+with ``True`` or ``False``::
  1621
+
  1622
+      management.call_command('dumpdata', use_natural_keys=True)
  1623
+
  1624
+Command options which take multiple options are passed a list::
  1625
+
  1626
+      management.call_command('dumpdata', exclude=['contenttypes', 'auth'])
  1627
+
1619 1628
 Output redirection
1620 1629
 ==================
1621 1630
 

0 notes on commit 960f5bc

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