summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-18 14:49:51 -0500
committerTim Graham <timograham@gmail.com>2015-01-18 14:49:51 -0500
commit0f169098efd099fd7ae13bd8e14b798530d74da7 (patch)
tree9314c1b68f067c5ef20edc9d180f6ce46af6c45f
parent67a76500a56d6dbe970126e142e02254dad7dbf3 (diff)
Removed BaseCommand.validate() per deprecation timeline; refs #16905.
-rw-r--r--django/core/management/base.py10
-rw-r--r--docs/howto/custom-management-commands.txt7
2 files changed, 0 insertions, 17 deletions
diff --git a/django/core/management/base.py b/django/core/management/base.py
index eca2f61264..51a2aed11f 100644
--- a/django/core/management/base.py
+++ b/django/core/management/base.py
@@ -414,16 +414,6 @@ class BaseCommand(object):
if saved_locale is not None:
translation.activate(saved_locale)
- def validate(self, app_config=None, display_num_errors=False):
- """ Deprecated. Delegates to ``check``."""
-
- if app_config is None:
- app_configs = None
- else:
- app_configs = [app_config]
-
- return self.check(app_configs=app_configs, display_num_errors=display_num_errors)
-
def check(self, app_configs=None, tags=None, display_num_errors=False,
include_deployment_checks=False):
"""
diff --git a/docs/howto/custom-management-commands.txt b/docs/howto/custom-management-commands.txt
index e136f97824..b3451732bb 100644
--- a/docs/howto/custom-management-commands.txt
+++ b/docs/howto/custom-management-commands.txt
@@ -361,13 +361,6 @@ the :meth:`~BaseCommand.handle` method must be implemented.
performed. ``tags`` can be a list of check tags, like ``compatibility`` or
``models``.
-.. method:: BaseCommand.validate(app=None, display_num_errors=False)
-
- .. deprecated:: 1.7
- Replaced with the :djadmin:`check` command
-
- If ``app`` is None, then all installed apps are checked for errors.
-
.. _ref-basecommand-subclasses:
BaseCommand subclasses