mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #26190 -- Returned handle() result from call_command
Thanks Tim Graham for the review.
This commit is contained in:
parent
47b5a6a43c
commit
b46c0ea6c8
4 changed files with 25 additions and 20 deletions
|
@ -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
|
||||
==================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue