change_password: Set requires_system_checks to a list.

Django 3.2 expects a list, and Django 4.1 will require one.  Fixes
“RemovedInDjango41Warning: Using a boolean value for
requires_system_checks is deprecated. Use '__all__' instead of True,
and [] (an empty list) instead of False.”

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-01-13 18:04:48 -08:00 committed by Tim Abbott
parent 9e70a47f93
commit 6e00d6f97a
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import getpass
from argparse import ArgumentParser
from typing import Any
from typing import Any, List
from django.contrib.auth.password_validation import validate_password
from django.core.exceptions import ValidationError
@ -19,7 +19,7 @@ class Command(ZulipBaseCommand):
help = "Change a user's password."
requires_migrations_checks = True
requires_system_checks = False
requires_system_checks: List[str] = []
def _get_pass(self, prompt: str = "Password: ") -> str:
p = getpass.getpass(prompt=prompt)