Fixed #26190 -- Returned handle() result from call_command

Thanks Tim Graham for the review.
This commit is contained in:
Claude Paroz 2016-02-13 18:14:36 +01:00
parent 47b5a6a43c
commit b46c0ea6c8
4 changed files with 25 additions and 20 deletions

View file

@ -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
==================