Opened 17 years ago
Closed 17 years ago
#5238 closed (duplicate)
Add ability to intialize form fields with model field default values.
Reported by: | Kevin Menard | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Forms | Version: | newforms-admin |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Using the old admin, form fields are populated with the model field default values. With the move to newforms, this ceased to be the case. It would be really nice if the old behavior could be reinstated. In particular, it would be nice if the form field initial values were set to the model field default values.
I've attached a simple patch that provides this behavior.
Attachments (1)
Change History (2)
by , 17 years ago
Attachment: | initial-default.diff added |
---|
comment:1 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #4967.