Is it possible for the user to update both Bio and Profile at same time? I cannot be sure with this limited information but I believe problem is in userprofile function
Then I recommend changing code under request.Post statement as follows
ifrequest.method=='POST':u_form=UserUpdateForm(request.POST,instance=request.user)p_form=PicUpdateForm(request.POST,request.FILES,instance=request.user.profileforusers)bio_form=BioUpdateForm(request.POST,instance=request.user.profileforusers)success_message=""ifu_form.is_valid():u_form.save()success_message+="Profile Is Updated Successfully! "ifp_form.is_valid():p_form.save()success_message+="Profile Picture Is Updated Successfully!"ifbio_form.is_valid():bio_form.save()success_message+="Bio Updated Successfully!"messages.success(request,success_message)returnredirect("profilesettings")
lets say user updates both profile picture and bio.. then previous implementation only updates picture and not bio. That seems to be the cause of the issue you.
Is it possible for the user to update both Bio and Profile at same time? I cannot be sure with this limited information but I believe problem is in
userprofile
functionyes user can update bio & name separately
Then I recommend changing code under request.Post statement as follows
lets say user updates both profile picture and bio.. then previous implementation only updates picture and not bio. That seems to be the cause of the issue you.
update: made an edit.
Thanks Sir
Did that solve the issue?