[1.8.x] Replaced deprecated requires_model_validation in docs.
Backport of 18192b9fa4
from master
This commit is contained in:
parent
9f86d86c62
commit
bfa3478850
|
@ -346,17 +346,15 @@ the :meth:`~BaseCommand.handle` method must be implemented.
|
||||||
|
|
||||||
.. method:: BaseCommand.get_version()
|
.. method:: BaseCommand.get_version()
|
||||||
|
|
||||||
Return the Django version, which should be correct for all
|
Returns the Django version, which should be correct for all built-in Django
|
||||||
built-in Django commands. User-supplied commands can
|
commands. User-supplied commands can override this method to return their
|
||||||
override this method to return their own version.
|
own version.
|
||||||
|
|
||||||
.. method:: BaseCommand.execute(*args, **options)
|
.. method:: BaseCommand.execute(*args, **options)
|
||||||
|
|
||||||
Try to execute this command, performing model validation if
|
Tries to execute this command, performing system checks if needed (as
|
||||||
needed (as controlled by the attribute
|
controlled by the :attr:`requires_system_checks` attribute). If the command
|
||||||
:attr:`requires_model_validation`). If the command raises a
|
raises a :class:`CommandError`, it's intercepted and printed to stderr.
|
||||||
:class:`CommandError`, intercept it and print it sensibly to
|
|
||||||
stderr.
|
|
||||||
|
|
||||||
.. admonition:: Calling a management command in your code
|
.. admonition:: Calling a management command in your code
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue