title: Pass queryset data to another query django
body: <p>I have the following model. I am trying to select all from UserClasses where a specific class_id is specified. I then want to get the User data for each of the results</p>
  
  <pre><code>class UserClasses(models.Model):
      class_id = models.ForeignKey(Class)
      user = models.ForeignKey(User)
  </code></pre>
  
  <p>This is my django view where I am trying to pull all User objects:</p>
  
  <pre><code>users = UserClasses.objects.filter(class_id=data['class_id'])
  user_details = User.objects.filter(#get users.id from userclasses and compare here)
  </code></pre>
  
  <p>How can I pass the results from one queryset into another?</p>