diff options
| author | Tim Graham <timograham@gmail.com> | 2015-01-17 12:32:20 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-17 12:34:34 -0500 |
| commit | 00a11994a57312687b9e104d2de370b139a28358 (patch) | |
| tree | b6caa3747cb61a4646e5bece512ece1dca492f2b /docs | |
| parent | f0a1df0b0139a7f5a576dff966210b5d52247650 (diff) | |
Removed support for AppCommand.handle_app() per deprecation timeline.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/custom-management-commands.txt | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/docs/howto/custom-management-commands.txt b/docs/howto/custom-management-commands.txt index cab7ea47ac..54e7f00cd5 100644 --- a/docs/howto/custom-management-commands.txt +++ b/docs/howto/custom-management-commands.txt @@ -406,22 +406,6 @@ each application. :class:`~django.apps.AppConfig` instance corresponding to an application label given on the command line. -.. versionchanged:: 1.7 - - Previously, :class:`AppCommand` subclasses had to implement - ``handle_app(app, **options)`` where ``app`` was a models module. The new - API makes it possible to handle applications without a models module. The - fastest way to migrate is as follows:: - - def handle_app_config(app_config, **options): - if app_config.models_module is None: - return # Or raise an exception. - app = app_config.models_module - # Copy the implementation of handle_app(app_config, **options) here. - - However, you may be able to simplify the implementation by using directly - the attributes of ``app_config``. - .. class:: LabelCommand A management command which takes one or more arbitrary arguments |
