mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 18:42:21 +01:00
Do not search uploader from the "all"-bar.
This commit is contained in:
@ -31,7 +31,7 @@ def songs(request):
|
||||
page = 1
|
||||
|
||||
queries = [Q(deleted=False)]
|
||||
queries.extend([Q(Q(artist__icontains=word) | Q(title__icontains=word) | Q(user__name__icontains=word)) for word in request.POST.get('all', '').split()])
|
||||
queries.extend([Q(Q(artist__icontains=word) | Q(title__icontains=word)) for word in request.POST.get('all', '').split()])
|
||||
queries.extend([Q(artist__icontains=word) for word in request.POST.get('artist', '').split()])
|
||||
queries.extend([Q(title__icontains=word) for word in request.POST.get('title', '').split()])
|
||||
queries.extend([Q(user__name__icontains=word) for word in request.POST.get('uploader', '').split()])
|
||||
|
||||
Reference in New Issue
Block a user