diff options
| author | Mattia Procopio <promat85@gmail.com> | 2019-05-23 14:22:41 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-05-27 11:50:30 +0200 |
| commit | aff61790a326f214f5ea608bac8298c3a8716b1b (patch) | |
| tree | 9917fefc34ef5b8b81cf2019633566e155b41f6b /tests/auth_tests/urls.py | |
| parent | 0670b1b403087ec2d311321597b387ad541ea2e0 (diff) | |
Refs #24944 -- Added test for overriding domain in email context in PasswordResetView.
Diffstat (limited to 'tests/auth_tests/urls.py')
| -rw-r--r-- | tests/auth_tests/urls.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auth_tests/urls.py b/tests/auth_tests/urls.py index f3cfa9f982..c34993ff93 100644 --- a/tests/auth_tests/urls.py +++ b/tests/auth_tests/urls.py @@ -91,7 +91,10 @@ urlpatterns = auth_urlpatterns + [ path('password_reset_from_email/', views.PasswordResetView.as_view(from_email='staffmember@example.com')), path( 'password_reset_extra_email_context/', - views.PasswordResetView.as_view(extra_email_context={'greeting': 'Hello!'})), + views.PasswordResetView.as_view( + extra_email_context={'greeting': 'Hello!', 'domain': 'custom.example.com'}, + ), + ), path( 'password_reset/custom_redirect/', views.PasswordResetView.as_view(success_url='/custom/')), |
