summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2008-06-16 15:46:36 +0000
committerBrian Rosner <brosner@gmail.com>2008-06-16 15:46:36 +0000
commitd0af06bad873de63bc44933e0a9bd29d3809910d (patch)
tree2545e73caf1f75f4a35f83151d2ff8d87b734c4b /docs
parent032e092ecf3df1101d19eb1aacb7b1a5e5ee7e85 (diff)
newforms-admin: Fixed an example relying on oldforms in the authentication docs.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/authentication.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/authentication.txt b/docs/authentication.txt
index d0df43d6a8..aacf21c106 100644
--- a/docs/authentication.txt
+++ b/docs/authentication.txt
@@ -541,14 +541,14 @@ block::
{% block content %}
- {% if form.has_errors %}
+ {% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}
<form method="post" action=".">
<table>
- <tr><td><label for="id_username">Username:</label></td><td>{{ form.username }}</td></tr>
- <tr><td><label for="id_password">Password:</label></td><td>{{ form.password }}</td></tr>
+ <tr><td>{{ form.username.label_tag }}</td><td>{{ form.username }}</td></tr>
+ <tr><td>{{ form.password.label_tag }}</td><td>{{ form.password }}</td></tr>
</table>
<input type="submit" value="login" />