Hi, at python level you can do it like this (untested):
def myview(request, ...): form=MyForm(..., initial={'email': request.user.email}) or form.fields['email'].initial=request.user.email shogunm...@googlemail.com schrieb: > Hi Thomas, > > Thanks for your quick reply! > > I had a look at the docs, but it seems I have to enter the initial > values at the Form definition level. However, I am interested in > entering dynamic data depending on who is viewing the form. For > instance, in my case I want the user's email address to be displayed > in the form when they view the page. Since the form definition doesn't > have access to the request object, I presume this is not possible. > > -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---