django-forms how to get the previous values that the user has filled in respective fields -


I have a form that has my first debit field: abc LastName: def DefEfBirth: 2011-10-14. . . .

Registration comes during the user and fill out this form. I have created an update link which allows the user to update their profile.

I want to show that when I click on the UpdateProfile link it shows me the default password of the user who is first filled in accordance with their login password

Users Should be able to see the first name as: abc lastname: def . . And so on

How can I get the default value of a user according to my login and password

Is this a plain form or modelform? It is very simple with the modelform. You get the object represented by the user who ModelForm prepares a form and sets an example This example is a bit crappy with user proof and you already have a user session session or whatever Maybe, but authentication is not on this.

  User = User. Receive (user name = username, password = password) form = UserForm (example = user)    

Comments