diff --git a/corehq/apps/domain/deletion.py b/corehq/apps/domain/deletion.py index 38b047e16cb8..d3c241c12f02 100644 --- a/corehq/apps/domain/deletion.py +++ b/corehq/apps/domain/deletion.py @@ -301,7 +301,7 @@ def _delete_demo_user_restores(domain_name): DOMAIN_DELETE_OPERATIONS = [ DjangoUserRelatedModelDeletion('otp_static', 'StaticDevice', 'user__username', ['StaticToken']), DjangoUserRelatedModelDeletion('otp_totp', 'TOTPDevice', 'user__username'), - DjangoUserRelatedModelDeletion('two_factor', 'PhoneDevice', 'user__username'), + DjangoUserRelatedModelDeletion('phonenumber', 'PhoneDevice', 'user__username'), DjangoUserRelatedModelDeletion('users', 'HQApiKey', 'user__username'), CustomDeletion('auth', _delete_django_users, ['User']), ModelDeletion('products', 'SQLProduct', 'domain'), diff --git a/corehq/apps/domain/templates/login_and_password/two_factor/core/login.html b/corehq/apps/domain/templates/login_and_password/two_factor/core/login.html index 61887c4d673a..102481acf529 100644 --- a/corehq/apps/domain/templates/login_and_password/two_factor/core/login.html +++ b/corehq/apps/domain/templates/login_and_password/two_factor/core/login.html @@ -1,4 +1,4 @@ -{% load i18n two_factor %} +{% load i18n phonenumber %} {% block focus-content %}