title: Django Update User form photo saves but doesnt update in the site itself
body: <p>So I am trying my hand out at my first django project on my own after tutorials, and I am trying to add an update user profile page. The username and email update perfectly fine, but when i try to update the profile picture, it doesnt update.Even though the file is saved in my media folder.</p>
  <p>forms.py:</p>
  <pre><code>class UserUpdateForm(forms.ModelForm):
  email = forms.EmailField()
  
  class Meta:
      model = User
      fields = ('username', 'email')
  
  class ProfileUpdateForm(forms.ModelForm):
      class Meta:
          model = Profile
          fields = ('image',)
  </code></pre>
  <p>views.py</p>
  <pre><code>@login_required
  def profile(request, pk):
      user = User.objects.get(id=pk)
      profile = Profile(user=user)
  
      user_form = UserUpdateForm(instance=request.user)
      profile_form = ProfileUpdateForm(instance=request.user.profile)
  
      if request.method == 'POST':
          user_form = UserUpdateForm(request.POST, instance=request.user)
          profile_form = ProfileUpdateForm(
              request.POST, request.FILES, instance=request.user.profile)
          if user_form.is_valid() and profile_form.is_valid():
              user_form.save()
              profile_form.save()
              return redirect('home')
  
      return render(request, 'registration/profile.html', {'user': user, 'profile': profile, 'user_form': user_form, 'profile_form': profile_form})
  
  {% extends 'base.html' %}
  {% load crispy_forms_tags %}
  
  {% block content %}
  &lt;h3 class=&quot;display-3 mb-3&quot;&gt;
      {{ user.username }}
  &lt;/h3&gt;
  &lt;p&gt;
      {{ user.bio }}
  &lt;/p&gt;
  
  &lt;br&gt;
  &lt;img src=&quot;{{ user.profile.image.url }}&quot; alt=&quot;ok&quot;&gt;
  &lt;hr&gt;
  
  &lt;hr&gt;
  &lt;form action=&quot;&quot; method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot;&gt;
      {% csrf_token %}
      &lt;fieldset class=&quot;form-group&quot;&gt;
          &lt;legend&gt;Profile Info&lt;/legend&gt;
          {{ user_form|crispy }}
          {{ profile_form|crispy }}
      &lt;/fieldset&gt;
      &lt;button type=&quot;submit&quot; class=&quot;btn btn-sm btn-primary&quot;&gt;Update&lt;/button&gt;
  &lt;/form&gt;
  {% endblock %}
  </code></pre>
  <p>If you need any more code i will update the question.
  What exactly is the problem here?</p>