summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-12 09:03:28 -0500
committerDan McGee <dan@archlinux.org>2011-10-12 09:03:31 -0500
commit16cac1ad88cb2fb653cf7abcb91e6f51c7510e27 (patch)
tree0d1ebbeea603632490e37ec4b38d38e8acb2e08b /packages/views.py
parent21a8fec980eb0613d3cce8aae7d6bfe6680c038a (diff)
Revert movement of search initialization code
I'm stupid and didn't realize it was referenced before the location I moved it to. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/views.py b/packages/views.py
index dab06919..5114c87f 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -293,6 +293,11 @@ def search(request, page=None):
else:
form = PackageSearchForm()
+ current_query = request.GET.urlencode()
+ page_dict = {
+ 'search_form': form,
+ 'current_query': current_query
+ }
allowed_sort = ["arch", "repo", "pkgname", "pkgbase",
"compressed_size", "installed_size",
"build_date", "last_update", "flag_date"]
@@ -304,11 +309,6 @@ def search(request, page=None):
else:
packages = packages.order_by('pkgname')
- current_query = request.GET.urlencode()
- page_dict = {
- 'search_form': form,
- 'current_query': current_query
- }
return list_detail.object_list(request, packages,
template_name="packages/search.html",
page=page,