summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/views.py b/packages/views.py
index d482c69d..97929ed3 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -9,7 +9,6 @@ from django.contrib.auth.decorators import permission_required
from django.contrib.admin.widgets import AdminDateWidget
from django.views.generic import list_detail
from django.db.models import Q
-from django.utils.http import urlencode
import datetime
@@ -125,7 +124,7 @@ def search(request, page=None):
packages = Package.objects.select_related('arch', 'repo', 'maintainer')
if request.GET:
- current_query += urlencode(request.GET)
+ current_query += request.GET.urlencode()
form = PackageSearchForm(data=request.GET)
if form.is_valid():
if form.cleaned_data['repo']:
@@ -172,7 +171,6 @@ def search(request, page=None):
else:
packages = packages.order_by('repo', 'arch', '-last_update', 'pkgname')
-
return list_detail.object_list(request, packages,
template_name="packages/search.html",
page=page,