* owner: nobody => Hasan Ramezani
* status: new => assigned
* type: Uncategorized => Cleanup/optimization
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
This makes me wonder if we want to replace `Command.requires_system_checks
= True` by something like `Command.required_system_checks = '__all__'`
that can be set to an empty list to achieve `required_system_checks =
False` and allow subclasses that want only a subset to specify tags
through it e.g. `required_system_checks = ['staticfiles']`. That would
prevent having do to the manual and error prone `options['skip_checks']
dance`. In all cases that should be done in a different PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/31546>
* stage: Unreviewed => Accepted
Comment:
OK, accepting based on the discussion on the PR. Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:2>
Comment (by Hasan Ramezani):
I created a [https://github.com/django/django/pull/12910 PR] for start.
Should we go for deprecating the `requires_system_checks = True/False`?
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:3>
Comment (by felixxm):
Replying to [comment:3 Hasan Ramezani]:
> I created a [https://github.com/django/django/pull/12910 PR] for start.
> Should we go for deprecating the `requires_system_checks = True/False`?
Yes.
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:4>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:5>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:6>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"c60524c658f197f645b638f9bcc553103bfe2630" c60524c6]:
{{{
#!CommitTicketReference repository=""
revision="c60524c658f197f645b638f9bcc553103bfe2630"
Fixed #31546 -- Allowed specifying list of tags in
Command.requires_system_checks.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:8>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"1cb495074f6d983096a015736fed16176588cd33" 1cb4950]:
{{{
#!CommitTicketReference repository=""
revision="1cb495074f6d983096a015736fed16176588cd33"
Refs #31546 -- Removed support for boolean values in
Command.requires_system_checks.
Per deprecation timeline.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:9>
Comment (by GitHub <noreply@…>):
In [changeset:"829f4d1448f7b40238b47592fc17061bf77b0f23" 829f4d1]:
{{{
#!CommitTicketReference repository=""
revision="829f4d1448f7b40238b47592fc17061bf77b0f23"
Refs #31546, Refs #34118 -- Corrected
CommandTests.test_requires_system_checks_specific().
System checks are never called without skip_checks=False. Moreover,
called_once_with() is not a proper assertion and raise AttributeError
on Python 3.12.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31546#comment:10>