i have a form say:
class ProfileEditForm(forms.Form):
first_name = forms.CharField(max_length=20)
last_name = forms.CharField(max_length=20)
email = forms.EmailField(max_length=50)
address = forms.CharField(max_length=100)
I want to pass model instance on it so that when user tries to edit their profile they get their existing data on the form.
For some reasons I am not using ModelForm
lets say I have instance user = User.objects.get(pk=pk)
and I want to pass instance like form = ProfileEditForm(instance=user)
I googled and found I can only use instance with model form but can I use it in form too that not from model ?
Thank you