From f8b4e6f0a195029fe2afd87d5947a5a8ea6d055d Mon Sep 17 00:00:00 2001 From: Tom Offermann Date: Tue, 1 Oct 2013 23:40:58 -0700 Subject: [PATCH] Fill in form action attribute in user_detail.html. Using Chrome, the update form didn't submit with a blank action, but worked fine once I specified it. Also, in researching whether a blank action attribute was OK, I found out that according to the HTML5 spec, the action attribute "must have a value that is a valid non-empty URL potentially surrounded by spaces." http://www.w3.org/TR/html5/forms.html#attr-fs-action --- .../{{cookiecutter.repo_name}}/templates/users/user_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/users/user_form.html b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/users/user_form.html index b61567e8..933abd11 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/users/user_form.html +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/users/user_form.html @@ -9,7 +9,7 @@

{% block header %}User: {{ user.username }}{% endblock %}

-
+ {% csrf_token %} {{ form|crispy }}
@@ -21,4 +21,4 @@
-{% endblock %}{% endraw %} \ No newline at end of file +{% endblock %}{% endraw %}