requirements: Upgrade Django to 4.1.

zerver/migrations/0240_usermessage_migrate_bigint_id_into_id.py needs
to be updated to account for Django 4.1 creating AutoField as an
identity column rather than a serial column.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-09-29 14:09:47 -07:00
committed by Tim Abbott
parent 67cbb21267
commit 92ad4455ed
10 changed files with 72 additions and 53 deletions

View File

@@ -173,7 +173,14 @@ def create_test_databases(worker_id: int) -> None:
connection.close()
def init_worker(counter: "multiprocessing.sharedctypes.Synchronized[int]") -> None:
def init_worker(
counter: "multiprocessing.sharedctypes.Synchronized[int]",
initial_settings: Optional[Dict[str, Any]] = None,
serialized_contents: Optional[Dict[str, str]] = None,
process_setup: Optional[Callable[..., None]] = None,
process_setup_args: Optional[Tuple[Any, ...]] = None,
debug_mode: Optional[bool] = None,
) -> None:
"""
This function runs only under parallel mode. It initializes the
individual processes which are also called workers.