From d9e5cbf546536e4a14e7f3cb591631515112a205 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 2 Apr 2012 12:40:40 -0500 Subject: Make hidden 'name' search field match exactly This is much more useful than the old contains match if you are trying to narrow down your search to a specific package. Signed-off-by: Dan McGee --- packages/views/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/views/search.py b/packages/views/search.py index 1431893d..a23c6b4a 100644 --- a/packages/views/search.py +++ b/packages/views/search.py @@ -101,7 +101,7 @@ def parse_form(form, packages): if form.cleaned_data['name']: name = form.cleaned_data['name'] - packages = packages.filter(pkgname__icontains=name) + packages = packages.filter(pkgname=name) if form.cleaned_data['desc']: desc = form.cleaned_data['desc'] -- cgit v1.2.3-54-g00ecf