Opened 16 years ago
Closed 13 years ago
#7757 closed New feature (fixed)
Can't override the form_url for add_view - its not passed to render_change_form
Reported by: | Rozza | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | Normal | Keywords: | newforms admin customization |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
form_url is passed to form_url but then not passed to the render_change_form
So you can't override it.
Attachments (1)
Change History (6)
by , 16 years ago
Attachment: | options.py.patch added |
---|
comment:1 by , 16 years ago
milestone: | 1.0 alpha |
---|---|
Triage Stage: | Unreviewed → Design decision needed |
The milestone is reserved for triagers to set. Also, what is the purpose of needing to do this?
comment:2 by , 16 years ago
Its currently passed into the add_view but not passed to the template - which wants to use the variable.
So for example you can't pass GET parameters into the form action. Which also may be required as well as POST params.
comment:3 by , 16 years ago
Also please see #7758 as it allows you to manage the form_url for the change_view as well standardising the interface for the methods.
The form_url is then used in the render_change_form method and passed to the template
comment:4 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:5 by , 13 years ago
Easy pickings: | unset |
---|---|
Resolution: | → fixed |
Status: | new → closed |
UI/UX: | unset |
This was fixed at some point.
Passes the form_url to render_change_form method