Opened 17 years ago
Closed 17 years ago
#6633 closed (invalid)
Special newforms which could be used in newforms-admin
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
This is my idea how create forms for newforms-admin. It is based on ticket #6630. There is no code - it is really only an idea.
There would be some new options which would describe how the forms should look like - for example "raw_id_admin", "use_javascript_calendars" and so on. There would be special function formfield_for_formfield which would change the fields and marked them for javascript. There would be a javascript library which would be included in each page with these forms. There would be new classes AdminModelAdmin and AdminInlineFormSet which would use the formfield_for_formfield as option in the inner class "Meta".
The media stuff is already handled by the ability to specify media to bundle with a form, and the other bits can also be handled already by standard form options.