mirror of https://github.com/zulip/zulip.git
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:
parent
9e70a47f93
commit
6e00d6f97a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue