#25515: The return value of BaseCommand.handle() is treated as output, but this 
is
undocumented
-------------------------------+------------------------------------
     Reporter:  nedbatchelder  |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Documentation  |                  Version:  1.8
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by timgraham):

 * has_patch:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 Good enough?
 {{{ #!diff
 diff --git a/docs/howto/custom-management-commands.txt b/docs/howto
 /custom-management-commands.txt
 index f42680b..0430a60 100644
 --- a/docs/howto/custom-management-commands.txt
 +++ b/docs/howto/custom-management-commands.txt
 @@ -300,6 +300,9 @@ the :meth:`~BaseCommand.handle` method must be
 implemented.

      The actual logic of the command. Subclasses must implement this
 method.

 +    The method may return a string which will be printed to ``stdout``
 (wrapped
 +    by ``BEGIN;`` and ``COMMIT;`` if :attr:`output_transaction` is
 ``True``).
 +
  .. method:: BaseCommand.check(app_configs=None, tags=None,
 display_num_errors=False)

      Uses the system check framework to inspect the entire Django project
 for
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25515#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.b35aaf1aa84b9377047434a8cc36426a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to