[Answered ]-When trying to edit new profile is creating in django

2👍

✅

You should pass the instance argument to the form’s constructor in the method == 'POST' branch:

company_edit = update_company_prof(request.POST,
                                   instance=request.user.company_profile)

Leave a comment