2👍
✅
Add request.FILES to the form:
update_profile_form = UpdateProfileForm(request.POST, request.FILES,
instance=request.user)
By default django doesn’t includes files in request.POST
Also, I think instance for UserProfile
model should be request.user.profile
instead of request.user
or am I missing something here?
Follow instructions from django-docs
Source:stackexchange.com