I don't know if this is the best way to pre-populate a form, but I
changed my view so it takes now a data dictionnary. It works :-)

data = {
            'first_name':user_obj.first_name,
            'last_name':user_obj.last_name,
            'gender':profile_obj.gender,
            'birthdate':profile_obj.birthdate,
            'country':profile_obj.country,
            'city':profile_obj.city
        }
        form = form_class(data)

@ MikeKJ: Maybe it works for you to (just defining your own
forms.Form). My example code should help.

Thanks for all your help (especially to you, urukay)!

Best regards,
Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to