summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-02-13 18:14:36 +0100
committerClaude Paroz <claude@2xlibre.net>2016-02-23 09:12:12 +0100
commitb46c0ea6c87f006f9ef0ccc5d8c0fa2445fb4156 (patch)
treeb2ad02486c71376062e637b21272f40b24bf56e9 /docs
parent47b5a6a43c400619ca471de02e9f5fcc9f30d8bf (diff)
Fixed #26190 -- Returned handle() result from call_command
Thanks Tim Graham for the review.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/django-admin.txt8
-rw-r--r--docs/releases/1.10.txt3
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 87753b28bd..6a7752f40c 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1793,6 +1793,14 @@ Command options which take multiple options are passed a list::
management.call_command('dumpdata', exclude=['contenttypes', 'auth'])
+The return value of the ``call_command()`` function is the same as the return
+value of the ``handle()`` method of the command.
+
+.. versionchanged:: 1.10
+
+ ``call_command()`` now returns the value received from the
+ ``command.handle()`` method.
+
Output redirection
==================
diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt
index db6b730670..658a3646bd 100644
--- a/docs/releases/1.10.txt
+++ b/docs/releases/1.10.txt
@@ -230,6 +230,9 @@ Internationalization
Management Commands
~~~~~~~~~~~~~~~~~~~
+* :func:`~django.core.management.call_command` now returns the value returned
+ from the ``command.handle()`` method.
+
* The new :option:`check --fail-level` option allows specifying the message
level that will cause the command to exit with a non-zero status.