[Answer]-Django Multiple fields in search error

1👍

@vikalp.sahni is correct. You enter an integer but you didn’t know that the input convert your answer into string. To fix that, as you said that the client_build is the only integer, it must be:

client_build = int(request.GET.get('client_build',''))

Overall I think your query is correct. Just remember to put int if it is integer.

Leave a comment