Django Model Form Data Not Being Saved
I have a profile model for the User which has fields like 'bio' and 'cover' representing the General information about the profile of the user etc.. I want those two things to be
Solution 1:
This is a form for the Profile model, so you should pass that as the instance.
generalform = EditGeneralProfileForm(request.POST, request.FILES, instance=request.user.profile)
Post a Comment for "Django Model Form Data Not Being Saved"