title: Django selecting objects in_bulk()
body: <p>I am trying to use in_bulk method, although something goes wrong</p>
  
  <p>First I pick values into list that I need to select in bulk:</p>
  
  <pre><code>states = StateObjectRelation.objects.filter(state=int(3), content_type=int(ctype.id))
  </code></pre>
  
  <p>Then convert them to list:</p>
  
  <pre><code>list = values_list('content_id', flat=True)
  </code></pre>
  
  <p>Now selecting the items in_bulk:</p>
  
  <pre><code>projects = Project.objects.in_bulk(list)
  </code></pre>
  
  <p>Give me the following error:</p>
  
  <p>Exception Value:<br>
  in_bulk() must be provided with a list of IDs.</p>
  
  <p>If i print out the values that are in list I get the following:</p>
  
  <pre><code>&gt;&gt;&gt; print list
  [1L]
  &gt;&gt;&gt; print list.values()
  [{'state_id': 3L, 'content_id': 1L, 'id': 1L, 'content_type_id': 29L}]
  </code></pre>