Code

Ticket #7902: password_email_url.diff

File password_email_url.diff, 611 bytes (added by Bob Thomas <bthomas@…>, 6 years ago)

Replace hardcoded link with url tag

Line 
1Index: django/contrib/admin/templates/registration/password_reset_email.html
2===================================================================
3--- django/contrib/admin/templates/registration/password_reset_email.html       (revision 8155)
4+++ django/contrib/admin/templates/registration/password_reset_email.html       (working copy)
5@@ -6,7 +6,7 @@
6 
7 {% trans "Feel free to change this password by going to this page:" %}
8 
9-http://{{ domain }}/password_change/
10+http://{{ domain }}{% url django.contrib.auth.views.password_change %}
11 
12 {% trans "Your username, in case you've forgotten:" %} {{ user.username }}
13