title: Django using icontains filter with multiple values from dictionary
body: <p>Hi i'm trying to run a model search query through a <strong>dictionary</strong> data which i got like so:</p>
  
  <pre><code>{
     "city":5,
     "direction":"ne",
     ..other data that can be dynamic...
     "address__icontains" = ["word1", "word2", "word3"],
  }
  </code></pre>
  
  <p>My search query:</p>
  
  <pre><code> Models.objects.filter(**query_dict)
  </code></pre>
  
  <p>since the other data are <strong>dynamic</strong> that why i use filter with dictionary.And i'm using <strong>__icontains</strong> to search up field <strong>address</strong>(string value) that contains those 3 words in that string, so the problem right now is since <strong>__icontains</strong> doesn't accept <strong>array</strong> like so in the query set:</p>
  
  <pre><code>Models.objects.filter(other keys and values from dictionary, address__icontains= ["word1", "word2", "word3"])
  </code></pre>
  
  <p>How would i make this work with the dictionary filter search ?</p>
  
  <p>my data in dict has 3 types string, int and list(1 for range search the other for icontains search) i would like to combine dictionary search with icontains AND search</p>
  
  <p>I also tried changing the dictionary to </p>
  
  <blockquote>
    <p>"address__icontains" = "word1 word2 word3"</p>
  </blockquote>
  
  <p>but it also doesn't work</p>
  
  <p>Example data:</p>
  
  <p>what im doing is find a Property that has an address field that has dynamic data like city, street, ward and district</p>
  
  <p>For example:</p>
  
  <blockquote>
    <p>Đường ĐT 9(street), Xã Mỹ Hạnh Nam(ward), Đức Hòa(district), Long
    An(city)</p>
  </blockquote>
  
  <p>and it also has other data for example like direction="ne" and <strong>specials</strong> one that search between range so has key like "size__range": [0,1000] in the dict </p>
  
  <p>for example if "address__icontains" = ["Long An", "Đức Hòa", "Xã Mỹ Hạnh Nam"] then it should return the above <strong>Property</strong> item with that address, direction="ne" and size has value between 0 and 1000</p>
  
  <p>Thank for reading</p>