diff gpp/templates/news/base.html @ 194:6a5549c2efb5

Implement #62, add support for CSRF protection.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Apr 2010 20:00:56 +0000
parents b7ac381996e8
children 1246a4f1ab4f
line wrap: on
line diff
--- a/gpp/templates/news/base.html	Sat Apr 03 02:15:04 2010 +0000
+++ b/gpp/templates/news/base.html	Sat Apr 03 20:00:56 2010 +0000
@@ -10,7 +10,7 @@
 <h2>SurfGuitar101 News &amp; Articles <a href="{% url feeds-news %}"><img src="{{ MEDIA_URL }}icons/feed.png" alt="News Feed" title="News Feed" /></a></h2>
 {% if search_form %}
 <div class="news-search">
-<form action="{% url news-search_page page=1 %}" method="post">
+<form action="{% url news-search_page page=1 %}" method="post">{% csrf_token %}
    <p>{{ search_form.text }} {{ search_form.category }} <input type="submit" value="Search" /></p>
 </form>
 </div>