diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index 748fb89419..d49fbf6ffc 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -840,6 +840,7 @@ The login_required decorator .. code-block:: html+django {% extends "base.html" %} + {% load url from future %} {% block content %} @@ -847,7 +848,7 @@ The login_required decorator <p>Your username and password didn't match. Please try again.</p> {% endif %} - <form method="post" action="{% url django.contrib.auth.views.login %}"> + <form method="post" action="{% url 'django.contrib.auth.views.login' %}"> {% csrf_token %} <table> <tr> |
