summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,