summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-02 12:40:40 -0500
committerDan McGee <dan@archlinux.org>2012-04-02 12:40:40 -0500
commitd9e5cbf546536e4a14e7f3cb591631515112a205 (patch)
treecbc86e6d2d791243c3eef1e95e115c511ae6c8d4
parentaed00836d5d57c19e8ea2767cafd1340e5e7c00a (diff)
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 <dan@archlinux.org>
-rw-r--r--packages/views/search.py2
1 files changed, 1 insertions, 1 deletions
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']