Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…uments.

Backport of fca4c48 from master
  • Loading branch information...
commit 693ebff1a4f5eeda56279188ee473be6a1088e46 1 parent aa50b7e
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
@@ -1530,6 +1530,15 @@ Examples::
1530 1530
       management.call_command('flush', verbosity=0, interactive=False)
1531 1531
       management.call_command('loaddata', 'test_data', verbosity=0)
1532 1532
 
  1533
+Note that command options that take no arguments are passed as keywords
  1534
+with ``True`` or ``False``::
  1535
+
  1536
+      management.call_command('dumpdata', use_natural_keys=True)
  1537
+
  1538
+Command options which take multiple options are passed a list::
  1539
+
  1540
+      management.call_command('dumpdata', exclude=['contenttypes', 'auth'])
  1541
+
1533 1542
 Output redirection
1534 1543
 ==================
1535 1544
 

0 notes on commit 693ebff

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