Re: populating model values into form

2010-11-28 Thread Michael Sprayberry
You will need to make an admin.py and follow these directions class FormAdmin(admin.ModelAdmin): prepopulated_fields = {"slug": ("title",)} slug can be what ever field you want to populate and title is where you are populating from, as far as I know you can only populate from within the same

Re: populating model values into form

2010-11-27 Thread Daniel Roseman
On Nov 27, 1:11 pm, djangobeginner 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

populating model values into form

2010-11-27 Thread djangobeginner
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