From b1c328c3cef00e6481d60e0d7c773ce4b41e5240 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Mon, 30 Dec 2019 17:57:33 +0100 Subject: [PATCH] Queries on Dir should be case-insensitive --- src/wiki/views/article.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiki/views/article.py b/src/wiki/views/article.py index 2b64c592..3ead25e3 100644 --- a/src/wiki/views/article.py +++ b/src/wiki/views/article.py @@ -591,7 +591,7 @@ class Dir(ListView, ArticleMixin): children = self.urlpath.get_children().can_read(self.request.user) if self.query: children = children.filter( - Q(article__current_revision__title__contains=self.query) | Q(slug__contains=self.query) + Q(article__current_revision__title__icontains=self.query) | Q(slug__icontains=self.query) ) if not self.article.can_moderate(self.request.user): children = children.active() -- 2.45.2