title: How to create multiple entries in a ManyToManyField programatically
body: <p>A noob question, I'm afraid. I have a database with several classes, among them the class picture and page:</p>
  
  <pre><code>class Picture(models.Model):
      picture_uuid = models.CharField(max_length=36)
  
  class Page(models.Model):
      page_uuid = models.CharField(max_length=36)
      pictures = models.ManyToManyField(Picture)
  </code></pre>
  
  <p>Creating new pictures entries in my database is straight forward:</p>
  
  <pre><code>newPic = Picture.objects.create(picture_uuid="SAMPLE-UUID")
  newPic2 = Picture.objects.create(picture_uuid="SAMPLE2-UUID")
  newPic3 = Picture.objects.create(picture_uuid="SAMPLE3-UUID")
  </code></pre>
  
  <p>etc.</p>
  
  <p>However, I have no idea how to add these pictures to a certain page:</p>
  
  <pre><code>newPage = Page.objects.create(page_uuid="SAMPLE-PAGE-UUID", pictures= … )
  </code></pre>
  
  <p>What if I wanted to achieve this programatically, i.e. adding my three pictures to this newPage?</p>