title: Cannot oversave model imagefield DJANGO
body: <p>I'm encountering weird problem with updating image. I do not receive any error, it just doesn;t get saved to the MEDIA_ROOT folder. If I do it manually via admin_site it works. When i'm using the forms, the above happens. </p>
  
  <p>views.py:</p>
  
  <pre><code>    @login_required
  def password_change(request):
      if request.method == "POST":
          pass_change_form = UserUpdatePasswordForm(data=request.POST, user=request.user)
          avatar_change_form = UserUpdateAvatar(data=request.POST, files=request.FILES, instance=request.user.profile)
          if pass_change_form.is_valid():
              pass_change_form.save()
              messages.success(request, 'The password has been changed, please relogin')
              return redirect('profile')
          if avatar_change_form.is_valid():
              print(request.FILES)
              avatar_change_form.save()
              messages.success(request, 'The avatar has been changed')
              return redirect('profile')
          else:
              messages.warning(request, 'Please fill the fields correctly')
              return redirect('password-change')
      else:
          pass_change_form = UserUpdatePasswordForm(user=request.user) 
          avatar_change_form = UserUpdateAvatar(instance=request.user.profile)
          context = {
              "pass":pass_change_form,
              "avatar":avatar_change_form
          }
          return render(request, 'users_templates/password_change.html', context)
  </code></pre>
  
  <p>forms:</p>
  
  <pre><code>class UserUpdateAvatar(forms.ModelForm):
      class Meta():
          model = Profile
          fields = ["avatar"]
  </code></pre>
  
  <p>models:</p>
  
  <pre><code>class Profile(models.Model):
      user = models.OneToOneField(User, on_delete=models.CASCADE)
      avatar = models.ImageField(default="default.jpg", upload_to="profile_avatars")
  
  
      def __str__(self):
          return f'{self.user.username} Profile'
  </code></pre>