Call url correctly from password_reset_email.txt.

In Jinja2 the url function is called differently. We can't give keyword
arguments directly instead we need to pass them through kwargs argument.
This commit is contained in:
Umair Khan 2016-05-24 18:00:35 +05:00 committed by Tim Abbott
parent ff4e92dc3d
commit 29859c191d
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Psst. Word on the street is that you forgot your password, {{ email}}.
It's all good. Follow the link below and we'll take care of the rest:
<{{ protocol}}://{{ domain }}{{ url('django.contrib.auth.views.password_reset_confirm', uidb64=uid, token=token) }}>
<{{ protocol}}://{{ domain }}{{ url('django.contrib.auth.views.password_reset_confirm', kwargs=dict(uidb64=uid, token=token)) }}>
Thanks,
Your friends at Zulip HQ