diff options
| author | Tim Graham <timograham@gmail.com> | 2015-10-06 15:08:15 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-06 15:09:55 -0400 |
| commit | d81b0812d43b8c068c8e65b19c1fa9dbdcb1da47 (patch) | |
| tree | 87181cbf8b93fddeb13ae71d57a4560e810d04eb | |
| parent | 2f9bc9933417d4a2b4b0196cfd9e7e886500e98d (diff) | |
[1.9.x] Fixed #25515 -- Documented the return value of BaseCommand.handle()
Backport of 3f766d44c5ea000ecf47829ca565b1921dab2ac1 from master
| -rw-r--r-- | docs/howto/custom-management-commands.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/howto/custom-management-commands.txt b/docs/howto/custom-management-commands.txt index d5dd800a94..833bc3840d 100644 --- a/docs/howto/custom-management-commands.txt +++ b/docs/howto/custom-management-commands.txt @@ -349,6 +349,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) Uses the system check framework to inspect the entire Django project for |
