Hello,
I _think_ your code looks right to me, though the query / or_query code is
confusing. Print statements could be helpful there to be sure it's actually
filtering something.
Does this code work?
def searchcandidate(request):
query_string = request.GET.get('q', '').strip()
found_en
*This question is also in
http://stackoverflow.com/questions/26635406/django-query-in-detailview
I have DetailVIew wich returns a list of related objects (m2m throught). It
works just fine!
But I need to search for objects'names and it is returning all objects
instead of only the related
2 matches
Mail list logo