I use "msignup"
model for user signups. after signup is complete which works just fine, in the profile of the user I want to let them change some basic information that they used during the signup (which are saved in database in msignup
model) using modelform named "accountSettingsForm
".
Obviously the original user information must be there in the "accountSettingsForm
" and the user would change any piece of information he/she likes.
I know it is possible to set the initial value of the accountSettingsForm:
form = accountSettingsForm(initial={'someFieldName':snomeVariable})
But I assume there is a better way of doing this that I don't know about.
Probably using __init__
methods is more appropriate.
Any helps will be greatly appreciated.