title: django model object filter
body: <p>I have tables called 'has_location' and 'locations'. 'has_location' has <code>user_has</code> and <code>location_id</code> and its own <code>id</code> which is given by django itself.</p>
  
  <p>'locations' have more columns. </p>
  
  <p>Now I want to get all locations of some certain user. What I did is..(user.id is known): </p>
  
  <pre><code>users_locations_id = has_location.objects.filter(user_has__exact=user.id)
  locations = Location.objects.filter(id__in=users_locations_id)
  print len(locations)
  </code></pre>
  
  <p>but I am getting <code>0</code> by this <code>print</code>. I have data in db. but I have the feeling that <code>__in</code> does not accept the models id, does it ?</p>
  
  <p>thanks </p>