From 2439914a506984acb36989e27517224ac11215fb Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 6 Jul 2022 16:12:49 -0700 Subject: [PATCH] settings: Add two_factor.plugins.phonenumber to INSTALLED_APPS. I missed this in commit feff1d0411875c70e6c9ee5729af10cd7f7cbef2 (#22383) for upgrading to django-two-factor-auth 1.14.0. Signed-off-by: Anders Kaseorg --- zerver/lib/export.py | 1 + zproject/computed_settings.py | 1 + 2 files changed, 2 insertions(+) diff --git a/zerver/lib/export.py b/zerver/lib/export.py index aa38c79295..e27dc6e490 100644 --- a/zerver/lib/export.py +++ b/zerver/lib/export.py @@ -311,6 +311,7 @@ def sanity_check_output(data: TableData) -> None: + list(apps.get_app_config("django_otp").get_models(include_auto_created=True)) + list(apps.get_app_config("otp_static").get_models(include_auto_created=True)) + list(apps.get_app_config("otp_totp").get_models(include_auto_created=True)) + + list(apps.get_app_config("phonenumber").get_models(include_auto_created=True)) + list(apps.get_app_config("social_django").get_models(include_auto_created=True)) + list(apps.get_app_config("two_factor").get_models(include_auto_created=True)) + list(apps.get_app_config("zerver").get_models(include_auto_created=True)) diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py index 00d6e619db..84f5463a85 100644 --- a/zproject/computed_settings.py +++ b/zproject/computed_settings.py @@ -218,6 +218,7 @@ INSTALLED_APPS = [ "django_otp.plugins.otp_static", "django_otp.plugins.otp_totp", "two_factor", + "two_factor.plugins.phonenumber", ] if USING_PGROONGA: INSTALLED_APPS += ["pgroonga"]