title: I need to update image for specific user Django
body: <p>I need to update image for specific user Django . Now if I updating the image  for specific user , image updates for all users . Is there any solutions ? Here is my code :</p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class UserWithImage(models.Model):
      user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)  
      image=models.FileField(upload_to='photos/%Y/%m/%d/',null=True,blank=True)
      def __str__(self):
          return self.user.username
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>if 'imagechange' in request.POST and request.FILES['image']:
      image = request.FILES['image']
      fs = FileSystemStorage()
      image_fs = fs.save(image.name, image)
      image_new = UserWithImage.objects.update(image=image_fs)
  </code></pre>
  
  <p><strong>html page</strong></p>
  
  <pre><code>    &lt;form  id='myform' enctype="multipart/form-data" method="POST"&gt;
          {% csrf_token %}               
          &lt;input type="file" class="settings__background__file" name="image" enctype="multipart/form-data"  id="backgroundimage" placeholder="Upload image"&gt;
      &lt;button id="submit-image" name="imagechange" type="submit"&gt; Upload Image &lt;/button&gt;
       &lt;/form&gt;
  </code></pre>