mirror of https://github.com/django/django.git
[1.8.x] Fixed #25515 -- Documented the return value of BaseCommand.handle()
Backport of 3f766d44c5
from master
This commit is contained in:
parent
e2db171e15
commit
9be9c511cc
|
@ -366,6 +366,9 @@ the :meth:`~BaseCommand.handle` method must be implemented.
|
|||
|
||||
The actual logic of the command. Subclasses must implement this method.
|
||||
|
||||
It may return a Unicode 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)
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
|
Loading…
Reference in New Issue