Commit 8b27b857 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt Committed by Robert

fix lint errors

parent c2dc414e
import re
import bleach
import django
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
......@@ -76,7 +75,7 @@ class Search(PermissionMixin, ListView):
template_name = 'stadt/search.html'
def get_queryset(self):
self.query_string = re.sub('[^\w ]', '', self.request.GET.get('q', ''))
self.query_string = re.sub(r'[^\w ]', '', self.request.GET.get('q', ''))
if self.query_string:
return SearchQuerySet().filter(content=AutoQuery(self.query_string))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment