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