From ae5374a7dfa79d27cbcca0046c336a75a86d1341 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 17 Feb 2010 21:11:56 -0600 Subject: Clean up urlencode usage even more Signed-off-by: Dan McGee --- packages/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'packages') 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.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, -- cgit v1.2.3-54-g00ecf