title: '.....' object is not iterable in django
body: <p>I have 3 models: User, Choice, Card. Each user will look at the same set of 10 cards and decides each one is important or not. </p>
  
  <p>Here are how I define the classes and their relationship</p>
  
  <p>In models.py:</p>
  
  <pre><code>class Choice(models.Model):
      user = models.ForeignKey(User)
      card = models.ManyToManyField(Card)
      is_important = models.NullBooleanField()
  
  class Card(models.Model):
      card_number = models.IntegerField(primary_key=True)
      content = models.TextField(null=False)
  </code></pre>
  
  <p>In views.py</p>
  
  <p>(I try to save the choice for the card from the user. )</p>
  
  <pre><code>def listings(request):
     user = request.user
     choice = Choice.objects.create(user=user, is_important = True)
     choice.card= Card.objects.get(1)
  </code></pre>
  
  <p>However, I got this error </p>
  
  <pre><code>'Card' object is not iterable
  </code></pre>
  
  <p>Could you please show me where the error is? </p>
  
  <p>Many thanks!</p>