1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #31546 -- Allowed specifying list of tags in Command.requires_system_checks.

This commit is contained in:
Hasan Ramezani
2020-05-14 00:00:41 +02:00
committed by Carlton Gibson
parent a4e6030904
commit c60524c658
30 changed files with 156 additions and 41 deletions

View File

@@ -215,8 +215,15 @@ All attributes can be set in your derived class and can be used in
.. attribute:: BaseCommand.requires_system_checks
A boolean; if ``True``, the entire Django project will be checked for
potential problems prior to executing the command. Default value is ``True``.
A list or tuple of tags, e.g. ``[Tags.staticfiles, Tags.models]``. System
checks registered in the chosen tags will be checked for errors prior to
executing the command. The value ``'__all__'`` can be used to specify
that all system checks should be performed. Default value is ``'__all__'``.
.. versionchanged:: 3.2
In older versions, the ``requires_system_checks`` attribute expects a
boolean value instead of a list or tuple of tags.
.. attribute:: BaseCommand.style