diff --git a/django/contrib/admin/templates/registration/password_reset_email.html b/django/contrib/admin/templates/registration/password_reset_email.html
a
|
b
|
|
4 | 4 | |
5 | 5 | {% trans "Please go to the following page and choose a new password:" %} |
6 | 6 | {% block reset_link %} |
7 | | {{ protocol }}://{{ domain }}{% url django.contrib.auth.views.password_reset_confirm uidb36=uid, token=token %} |
| 7 | {{ protocol }}://{{ domain }}{% url django.contrib.auth.views.password_reset_confirm uidb36=uid token=token %} |
8 | 8 | {% endblock %} |
9 | 9 | {% trans "Your username, in case you've forgotten:" %} {{ user.username }} |
10 | 10 | |
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py
a
|
b
|
|
1077 | 1077 | This is a way to define links that aren't tied to a particular URL |
1078 | 1078 | configuration:: |
1079 | 1079 | |
1080 | | {% url path.to.some_view arg1,arg2,name1=value1 %} |
| 1080 | {% url path.to.some_view arg1 arg2 name1=value1 %} |
1081 | 1081 | |
1082 | 1082 | The first argument is a path to a view. It can be an absolute python path |
1083 | 1083 | or just ``app_name.view_name`` without the project name if the view is |
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
a
|
b
|
|
891 | 891 | view function and optional parameters. This is a way to output links without |
892 | 892 | violating the DRY principle by having to hard-code URLs in your templates:: |
893 | 893 | |
894 | | {% url path.to.some_view v1,v2 %} |
| 894 | {% url path.to.some_view v1 v2 %} |
895 | 895 | |
896 | 896 | The first argument is a path to a view function in the format |
897 | 897 | ``package.package.module.function``. Additional arguments are optional and |
… |
… |
|
899 | 899 | The example above shows passing positional arguments. Alternatively you may |
900 | 900 | use keyword syntax:: |
901 | 901 | |
902 | | {% url path.to.some_view arg1=v1,arg2=v2 %} |
| 902 | {% url path.to.some_view arg1=v1 arg2=v2 %} |
903 | 903 | |
904 | 904 | Do not mix both positional and keyword syntax in a single call. All arguments |
905 | 905 | required by the URLconf should be present. |
… |
… |
|
941 | 941 | different call:: |
942 | 942 | |
943 | 943 | |
944 | | {% url path.to.view arg, arg2 as the_url %} |
| 944 | {% url path.to.view arg arg2 as the_url %} |
945 | 945 | |
946 | 946 | <a href="{{ the_url }}">I'm linking to {{ the_url }}</a> |
947 | 947 | |
… |
… |
|
963 | 963 | <topics-http-reversing-url-namespaces>`, including using any hints provided |
964 | 964 | by the context as to the current application. |
965 | 965 | |
| 966 | .. versionadded:: 1.2 |
| 967 | |
| 968 | Note that the old syntax using commas as argument separators is still supported, but deprecated; |
| 969 | the officially sanctioned syntax uses spaces, for consistency with other built-in tags. |
| 970 | |
966 | 971 | .. templatetag:: widthratio |
967 | 972 | |
968 | 973 | widthratio |