2👍
✅
You are using ModelForm then why not take advantage that to display.?
form = EditProfileForm(instance=your_user_profile_instance)
return render(request, 'test.html', {'form':form})
or
context["form"] = EditProfileForm(initial=data)
Source:stackexchange.com