~netlandish/django-wiki

b1c328c3cef00e6481d60e0d7c773ce4b41e5240 — Benjamin Bach 4 years ago 5ff4004
Queries on Dir should be case-insensitive
1 files changed, 1 insertions(+), 1 deletions(-)

M src/wiki/views/article.py
M src/wiki/views/article.py => src/wiki/views/article.py +1 -1
@@ 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()