I am trying to compare my query search to all my model fields, but I can't figure how to do it in more than one field.
this is my code.
expense = Expense.objects.filter(user=request.user.id).order_by('date')
q = request.GET['q']
result = expense.filter(name__icontains=q)
I want to check in: name
, amount
, category
Thanks in advance