title: Django: How to save data to ManyToManyField?
body: <p>I have a question concerning the following model. I want to populate the <code>ManyToManyField</code> from views.py instead of doing it from the Admin.</p>
  
  <p>But how do I add data to the <code>genres</code> field which is the <code>ManyToManyField</code>?</p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>content = Movie_Info(id = m_id,
                      title = data[0].get('title'),
                      overview = data[0].get('overview'),
                      release_date = data[0].get('release_date'),
                  )
  content.save()
  </code></pre>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class Movie_Info_genre(models.Model):
      genre = models.CharField(max_length=100)
  
  class Movie_Info(models.Model):
      id             = models.IntegerField(primary_key=True)
      title          = models.CharField(max_length=100, blank=True, null=True)
      overview       = models.TextField(blank=True, null=True)
      release_date   = models.CharField(max_length=10, blank=True, null=True)
      genres         = models.ManyToManyField(Movie_Info_genre)
  </code></pre>