summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-17 12:49:16 -0500
committerTim Graham <timograham@gmail.com>2015-01-17 12:52:34 -0500
commit85c0eb1e3baf09d79d463a20fedc3fbded3093f9 (patch)
tree6dfcfb3ea79e1d4ec305f335c54710431b6a58a5
parent467fd7ea1afe6d80735af73ece45eaa61d9ff3c5 (diff)
[1.7.x] Replaced deprecated requires_model_validation in docs.
Backport of 18192b9fa4387d5e6c677a7929d91ce04f92cda7 from master
-rw-r--r--docs/howto/custom-management-commands.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/docs/howto/custom-management-commands.txt b/docs/howto/custom-management-commands.txt
index 17fb74db4e..e477ee2b9e 100644
--- a/docs/howto/custom-management-commands.txt
+++ b/docs/howto/custom-management-commands.txt
@@ -303,17 +303,15 @@ the :meth:`~BaseCommand.handle` method must be implemented.
.. method:: BaseCommand.get_version()
- Return the Django version, which should be correct for all
- built-in Django commands. User-supplied commands can
- override this method to return their own version.
+ Returns the Django version, which should be correct for all built-in Django
+ commands. User-supplied commands can override this method to return their
+ own version.
.. method:: BaseCommand.execute(*args, **options)
- Try to execute this command, performing model validation if
- needed (as controlled by the attribute
- :attr:`requires_model_validation`). If the command raises a
- :class:`CommandError`, intercept it and print it sensibly to
- stderr.
+ Tries to execute this command, performing system checks if needed (as
+ controlled by the :attr:`requires_system_checks` attribute). If the command
+ raises a :class:`CommandError`, it's intercepted and printed to stderr.
.. admonition:: Calling a management command in your code