2👍
✅
class UserProfileForm (forms.ModelForm):
class Meta:
user = UserProfile
...
You mean model = UserProfile
, not user = UserProfile
.
Source:stackexchange.com