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
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
2 matches
Mail list logo