summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-07-31 00:25:19 -0500
committerDan McGee <dan@archlinux.org>2012-07-31 00:26:02 -0500
commit4ad43fd8165834b26914ff8ba0666ce96267205b (patch)
treeb1a626d27ac005a8ceea54b4bb933fde8e46b56f
parentc03b9c5f10b1695c4a099a578f19e09b33c6df10 (diff)
Fix broken hidden input sort field on search form
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--packages/views/search.py2
-rw-r--r--templates/packages/search.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/views/search.py b/packages/views/search.py
index 9750894a..497d9bca 100644
--- a/packages/views/search.py
+++ b/packages/views/search.py
@@ -40,7 +40,7 @@ class PackageSearchForm(forms.Form):
name = forms.CharField(required=False)
desc = forms.CharField(required=False)
q = forms.CharField(required=False)
- sort = forms.CharField(required=False)
+ sort = forms.CharField(required=False, widget=forms.HiddenInput())
maintainer = forms.ChoiceField(required=False)
packager = forms.ChoiceField(required=False)
last_update = forms.DateField(required=False, widget=AdminDateWidget(),
diff --git a/templates/packages/search.html b/templates/packages/search.html
index 9d86cedf..ab9b6d32 100644
--- a/templates/packages/search.html
+++ b/templates/packages/search.html
@@ -19,7 +19,7 @@
<h3>Package Search</h3>
<form id="pkg-search" method="get" action="/packages/">
- <p><input type="hidden" name="sort" value='{{sort}}' /></p>
+ <p>{{ search_form.sort }}</p>
{{ search_form.non_field_errors }}
<fieldset>
<legend>Enter search criteria</legend>