Skip to content

Commit

Permalink
Update tango_too.rst
Browse files Browse the repository at this point in the history
We need the trailing slash for that POST request.  Otherwise we end up with an error.
  • Loading branch information
ramdog committed Nov 1, 2013
1 parent 81c94ee commit 72723fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/tango_too.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Take the search form from ``search.html`` and put it into the ``category.html``.

<div class="container-fluid">
<p>Search for a page.</p>
<form class="span8 form-search" id="search_form" method="post" action="/rango/category/{{ category_name_url }}">
<form class="span8 form-search" id="search_form" method="post" action="/rango/category/{{ category_name_url }}/">
{% csrf_token %}
<input type="text" class="input-long search-query" name="query" value="{{ category_name }}" id="query" />
<button type="submit" class="btn btn-success" name="submit" value="Search">Search</button>
Expand Down Expand Up @@ -317,4 +317,4 @@ Here you can see that in the template we have added some control statements to d

Updating Category View
......................
Since we are tracking the number of click throughs you can now update the ``category()`` view so that you order the pages by the number of views. To confirm this works, click on a link and refresh the category view - the link you clicked should jump up the rankings.
Since we are tracking the number of click throughs you can now update the ``category()`` view so that you order the pages by the number of views. To confirm this works, click on a link and refresh the category view - the link you clicked should jump up the rankings.

0 comments on commit 72723fc

Please sign in to comment.