Re: Populating a form from the database

2009-08-05 Thread Thomas Guettler
Hi, if you use ModelForm, the data from the database are the initial form data. If you create a new record with ModelForm, you could use the "initial" parameter to supply some default values. More can be found in the docs. Thomas Magnus Valle schrieb: > Short: > How do I populate a form

Populating a form from the database

2009-08-04 Thread Magnus Valle
Short: How do I populate a form with data from the database? Fx. if I want to let users edit the data they have entered. Long: Currently, I have a form where the user(if logged in) will enter data and when it is submitted some extra data is entered to the form before it is saved, a time-stamp