Re: populating model values into form
On Nov 27, 1:11 pm, djangobeginner <margarita.lad...@jmango.net>
wrote:
> Hi,
> Im a beginner here, would just like to ask how to pass and populate
> model values (from database) into a created form, I have the following
> codes
>
> 1. I already have a webpage list of all the values in a table form
> 2. If I click on any of the row with primary key id (example: clicking
> edit link), it should redirect me to a created form (in forms.py) with
> all the values populated based on the primary key id from the web
> list.
>
> How do I possibly do #2?
> Please help. thanks.
>
<snip>
http://docs.djangoproject.com/en/1.2/topics/forms/modelforms/
--
DR.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home