diff options
author | Dan McGee <dan@archlinux.org> | 2010-02-17 21:11:56 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-02-17 21:11:56 -0600 |
commit | ae5374a7dfa79d27cbcca0046c336a75a86d1341 (patch) | |
tree | 4f7f09f878512d8d982b4a9bc9456d7c3291826c /packages | |
parent | 6d28f81801581e2258b1d13eb40b6f6c98beaca0 (diff) |
Clean up urlencode usage even more
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/views.py | 4 |
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, |