From: Magnus Hagander Date: Wed, 21 Mar 2018 12:15:59 +0000 (+0100) Subject: Reference mailinglists by name when sending search query X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=d9c9d91da72eef34b521153c23cdc3bd4f341f2e;p=pgweb.git Reference mailinglists by name when sending search query This way we don't have to keep the exact id values in sync between different systems, which makes it much less evil. --- diff --git a/pgweb/search/views.py b/pgweb/search/views.py index 8f11c384..29c39e1a 100644 --- a/pgweb/search/views.py +++ b/pgweb/search/views.py @@ -171,9 +171,9 @@ def search(request): if listid: if listid < 0: # This is a list group, we expand that on the web server - p['l'] = ','.join([str(x.id) for x in MailingList.objects.filter(group=-listid)]) + p['ln'] = ','.join([x.listname for x in MailingList.objects.filter(group=-listid)]) else: - p['l'] = listid + p['ln'] = MailingList.objects.get(pk=listid).listname if dateval: p['d'] = dateval urlstr = urllib.urlencode(p)