1👍
✅
The problem is in linked_form = UserDetailForm(request.POST, instance=request.user)
. request.user
is not an instance of model User_detail
.
What is happening is that, django is trying to find the instance in the model and not finding any. You need to provide a valid User_detail
instance so that django can update that instance.
Reference: save() method
Source:stackexchange.com