title: Django searching for a string match in a list of dictionary which is returned from queryset.
body: <p>I have something like this in my view.py </p>
  
  <pre><code>def calculateMark(mobile_a, mobile_b):
      #variables
      mobile_a = mobile_a
      mobile_b = mobile_b
  
      results_a = []
      results_b = []
      record_a = TechSpecificationAdd.objects.filter(mobile_name=mobile_a).values()
      record_b = TechSpecificationAdd.objects.filter(mobile_name=mobile_b).values()
      results_a += record_a
      results_b += record_b
      record_a = record_a[0]
      record_b = record_b[0]
  
      if 'Android' in record_a['os']:
          os_mark_a = 8.9
      elif 'Android' in record_b['os']:
          os_mark_b = 8.9
      elif 'iOS' in record_a['os']:
          os_mark_a = 14
      if 'iOS' in record_b['os']:
          os_mark_b = 14
      else:
          os_mark_a = 1
          os_mark_b = 1
  </code></pre>
  
  <p>calculateMark Function will calculate a mark for mobiles. Everything is ok but in case of Operating System (os) testing. Its returning always the else block.</p>
  
  <p>The question is how can I search for a string like "ios" in my record['os'] field?</p>