~netlandish/django-wiki

dac520ba03431af8811ec26776e77d64ab663141 — Christian Duvholt 8 years ago 6b2cb1a
Fix duplicate search results
1 files changed, 1 insertions(+), 1 deletions(-)

M wiki/views/article.py
M wiki/views/article.py => wiki/views/article.py +1 -1
@@ 595,7 595,7 @@ class SearchView(ListView):
        if not permissions.can_moderate(
                models.URLPath.root().article,
                self.request.user):
            articles = articles.active().can_read(self.request.user)
            articles = articles.active().can_read(self.request.user).distinct()
        return articles

    def get_context_data(self, **kwargs):