From c22d9f72c0c10816da13c5f5ba5f21a901743892 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 26 Sep 2020 15:54:25 +0200 Subject: [PATCH] Use a dash instead of empty string to indicate all tags Seems there is somethign in the stack used in production that does not like the use of an empty string between two slashes... --- pgweb/news/views.py | 2 +- templates/news/newsarchive.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pgweb/news/views.py b/pgweb/news/views.py index f5e85819..24522f8d 100644 --- a/pgweb/news/views.py +++ b/pgweb/news/views.py @@ -15,7 +15,7 @@ NEWS_ITEMS_PER_PAGE = 10 def archive(request, tag=None, paginator=None): - if tag and tag.strip('/'): + if tag and tag.strip('/') != '-': tag = get_object_or_404(NewsTag, urlname=tag.strip('/')) news = NewsArticle.objects.select_related('org').filter(modstate=ModerationState.APPROVED, tags=tag) else: diff --git a/templates/news/newsarchive.html b/templates/news/newsarchive.html index 3fab6130..7852455a 100644 --- a/templates/news/newsarchive.html +++ b/templates/news/newsarchive.html @@ -18,7 +18,7 @@ {%endfor%} {%if paginator%} -Older news... +Older news... {%endif%}

-- 2.39.5