I want to include a reminder of a user's username in the password reset email, but I can't seem to include the username variable in the context. I'm trying to include it via the extra_email_context parameter in the URL pattern, but that doesn't work:
url(r'^password_reset/$', django_auth_views.password_reset, {'template_name': 'common/password_reset_form.html', 'email_template_name': 'common/password_reset_email.html', 'extra_email_context': {'username': user.username}, 'post_reset_redirect': 'common:password_reset_done'}, name='password_reset'), Is there any other way to make this work? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e014d2aa-6ec6-481d-8c97-033787d1983d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.