title: Saving an Image in Django from a request.get
body: <p>So, I'm attempting to use request.get to pull an image from the web and save it to a django database. This is some code as follows and the steps that I have attempted:</p>
  
  <p>My Model (just the needed bit, not all of it)</p>
  
  <pre><code>class Pistol(models.Model):
      gun_id = models.CharField(max_length=255)
      manufacturer = models.CharField(max_length=255, blank=True)
      model = models.CharField(max_length=255, blank=True)
      image = models.ImageField(upload_to='img/inventory', blank=True)
  </code></pre>
  
  <p>My Code (I'm doing this from a shell so it may seem unorganized slightly)</p>
  
  <pre><code>import request
  
  r = requests.get('http://media.server.theshootingwarehouse.com/small/2451.jpg')
  item = Pistol(gun_id="1", price=400, image="1.jpg")
  item.image.save('1.jpg',r.content)
  </code></pre>
  
  <p>And then I get the following error</p>
  
  <pre><code>AttributeError: 'bytes' object has no attribute 'read' 
  </code></pre>
  
  <p>Note I am working in <code>python3</code>.</p>