summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2010-01-04 22:22:16 +0000
committerLuke Plant <L.Plant.98@cantab.net>2010-01-04 22:22:16 +0000
commitd4f9bff7ef190fdaedaa5319718f1db265d86d56 (patch)
treefda5d04b92bc9bacb321f271bebf3b3b3b0a2897 /django
parent5d75b3d5c4b9dd8fa2837f47843dd78aadb94666 (diff)
[1.1.X] Fixed #12503 - form examples don't validate according to w3c
Thanks to skyl for the report. Backport of r12086 from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/contrib/comments/templatetags/comments.py2
-rw-r--r--django/contrib/csrf/tests.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/comments/templatetags/comments.py b/django/contrib/comments/templatetags/comments.py
index 9f8180ab08..876c55500f 100644
--- a/django/contrib/comments/templatetags/comments.py
+++ b/django/contrib/comments/templatetags/comments.py
@@ -248,7 +248,7 @@ def comment_form_target():
Example::
- <form action="{% comment_form_target %}" method="POST">
+ <form action="{% comment_form_target %}" method="post">
"""
return comments.get_form_target()
diff --git a/django/contrib/csrf/tests.py b/django/contrib/csrf/tests.py
index f9b958149d..2acda0b0c4 100644
--- a/django/contrib/csrf/tests.py
+++ b/django/contrib/csrf/tests.py
@@ -9,7 +9,7 @@ from django.template import Template
def post_form_response():
resp = HttpResponse(content="""
-<html><body><form method="POST"><input type="text" /></form></body></html>
+<html><body><form method="post"><input type="text" /></form></body></html>
""", mimetype="text/html")
return resp