#12628 closed (fixed)
readonly_fields in GenericInlineModelAdmin are ignored during save
Reported by: | Jiri Suchan | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | readonly_fields, generic | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Fields defined in readonly_fields property in GenericStackedInline class are properly displayed as readonly elements. But during save is readonly_fields property ignored, so all values for those fields are saved with empty value.
Note to attached patch:
Fields in 'exclude' properly are handled properly, so I joined them together with readonly_fields.
Attachments (2)
Change History (7)
by , 15 years ago
Attachment: | generic_inlines_save.diff added |
---|
comment:1 by , 15 years ago
milestone: | → 1.2 |
---|---|
Needs tests: | set |
Triage Stage: | Unreviewed → Accepted |
Version: | → SVN |
comment:2 by , 15 years ago
Patch needs improvement: | set |
---|
by , 15 years ago
Attachment: | generic-readonly.diff added |
---|
comment:3 by , 15 years ago
Patch needs improvement: | unset |
---|
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch for correct readonly_fields save