readonly_fields in GenericInlineModelAdmin are ignored during save
|Reported by:||Jiri Suchan||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)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|