Create_object generic view does not provide a way to pre-populate a form with dynamic data
|Reported by:||Owned by:||nobody|
|Severity:||Keywords:||pre-populate, generic, view, dictionary|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
To my knowledge which may be limited there is no simple way to pre-populate a form that is being used in a generic view for creating an object. It would be fantastic to be able to pass a dictionary of values to to create object method so that when the form is rendered this dictionary of values gets pre-populated in the form.
I apologise if this is an erroneous ticket. My experience with Django is limited however I have spent a lot of time reading the documentation and reading through the Django source code without having found any simple way of doing this.
Change History (8)
comment:6 Changed 7 years ago by
|Status:||closed → reopened|
|Summary:||Create_object generic view does not provide a way to pre-populate a form → Create_object generic view does not provide a way to pre-populate a form with dynamic data|