title: How to get previous saved data while editing profile page in django
body: <p>while editing my profile page ,i get blank page but i want previous saved data.</p>
  <p>forms.py</p>
  <pre><code>class UserEditForm(forms.ModelForm):
      class Meta:
          model=User
          fields=['first_name','last_name','email']
  
  class ProfileEditForm(forms.ModelForm):
      class Meta:
          model=Profile
          fields=['date_of_birth','photo']
  </code></pre>
  <p>views.py</p>
  <pre><code>@login_required
  def editprofile(request):
      user_form=UserEditForm()
      profile_form=ProfileEditForm()
      if request.method=='POST':
         user_form=UserEditForm(data=request.POST,instance=request.user)
         profile_form=ProfileEditForm(data=request.POST,instance=request.user.profile,files=request.FILES)
         if user_form.is_valid() and profile_form.is_valid() :
           user_form.save()
           profile_form.save()
           return HttpResponse('profile saved')
      context={'user_form':user_form,'profile_form':profile_form}
      return render(request,'socialapp/editprofile.html',context)
  </code></pre>