Hi
I am using form_for_instance to edit user
my view is
def edit(self):
user = request.user
UserForm = forms.form_for_instance(user, form=EditProfile,
fields=('email'))
my basefom class
class EditProfile(forms.BaseForm):
def __init__(self, *args, **kwargs):
super(EditProfileForm, self).__init__(*args, **kwargs)
verify_email = forms.EmailField(label='Repeat your email')
Now my problem is the verify_email fields initial data is empty. I
need to display the value of email to initial value of verify_email.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---