summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-06-29 20:08:18 -0400
committerDusty Phillips <buchuki@gmail.com>2008-06-29 20:08:18 -0400
commitb579f98acf85e8d749a471a98f7940b859cb366f (patch)
treeed79f7521bddb5a3e33f3c3217ad1be08e54c19e /packages
parentd241ae78eec85f4667fb24721ca027743c814df3 (diff)
downloadarchweb-b579f98acf85e8d749a471a98f7940b859cb366f.tar.gz
archweb-b579f98acf85e8d749a471a98f7940b859cb366f.zip
add maintainer column to search results
Diffstat (limited to 'packages')
-rw-r--r--packages/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/views.py b/packages/views.py
index 2a77be53..e9162c0f 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -47,6 +47,7 @@ def details(request, pkgid=0, name='', repo=''):
pkg = get_object_or_404(Package, id=pkgid)
return render_response(request, 'packages/details.html', {'pkg': pkg})
+# @TODO: replace search form with a newform
def search(request, query=''):
if request.GET.has_key('q'):
# take the q GET var over the one passed on the URL
@@ -65,9 +66,11 @@ def search(request, query=''):
# build the form lists
repos = Repo.objects.all()
arches = Arch.objects.all()
+ users = User.objects.all()
# copy GET data over and add the lists
c = request.GET.copy()
c['repos'], c['arches'] = repos, arches
+ c['users'] = users
c['limit'], c['skip'] = limit, skip
c['lastupdate'] = lastupdate
c['sort'] = sort