1👍
✅
def Result(request):
skills = request.GET['skill']
country = request.GET['country']
query_skills = Q(jsskills__skill__icontains=skills)
query_country = Q(jspersonal__country__icontains=country)
query_visibility = Q(jsdetails__visiblity=True)
users = User.objects.filter(query_skills | query_country, query_visibility)
return render_tor_response('sometemplate.html', {'users': users})
Then in the template you cycle over the users
you have in the context.
Source:stackexchange.com