##// END OF EJS Templates
Search by attachment urls
neko259 -
r1982:2a32eaa4 default
parent child Browse files
Show More
@@ -38,7 +38,8 b' class BoardSearchView(View, PaginatedMix'
38 38 if len(query) >= MIN_QUERY_LENGTH:
39 39 results = Post.objects.filter(Q(text__icontains=query)
40 40 | Q(title__icontains=query) | Q(opening=True,
41 thread__tags__aliases__name__icontains=query)).order_by('-id').distinct()
41 thread__tags__aliases__name__icontains=query)
42 | Q(attachments__url__icontains=query)).order_by('-id').distinct()
42 43 paginator = get_paginator(results, RESULTS_PER_PAGE)
43 44 paginator.set_url(reverse('search'), request.GET.dict())
44 45
General Comments 0
You need to be logged in to leave comments. Login now