Formwizard enhancement proposal
|Reported by:||Harro||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I'd like to propose the following changes to the formwizard:
Add kwargs to the get_initkwargs method to allow for calling the wizard from the urls.py with changed attributes (storage, template_name)
The reasons behind this that the same wizard might be used in multiple locations and you might for instance want to change the storage backend based on the fact if the user is logged in or not.
Add extra_context as a default attribute and use it in the get_extra_context, this I needed when I tried to get the wizard integrated in the admin add and change views. Here some extra context for the templates is needed to get everything working correctly (breadcrumbs etc). This way a user could specify a wizard that is also used in the frontend without needing to change anything for the admin.
I'll be working on this during the djangocon eu 2011 sprints :)
Change History (8)
comment:1 Changed 5 years ago by
|Patch needs improvement:||unset|