fix tag filter bug
This commit is contained in:
parent
8d21f9dd75
commit
16921530b5
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ def search(request):
|
|||
# tag
|
||||
tag = request.GET.get("tag", default='')
|
||||
if tag:
|
||||
q = q | Q(book_tags__content__iexact=tag)
|
||||
q = q & Q(book_tags__content__iexact=tag)
|
||||
|
||||
query_args.append(q)
|
||||
queryset = Book.objects.filter(*query_args).distinct()
|
||||
|
|
Loading…
Add table
Reference in a new issue