readonly_fields in GenericInlineModelAdmin are ignored during save
|Reported by:||yedpodtrzitko||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
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.
Change History (7)
Changed 4 years ago by yedpodtrzitko
comment:1 Changed 4 years ago by ramiro
- milestone set to 1.2
- Needs documentation unset
- Needs tests set
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
- Version set to SVN