Changes between Initial Version and Version 1 of Ticket #30577, comment 4
- Timestamp:
- Aug 4, 2021, 10:15:21 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30577, comment 4
initial v1 2 2 3 3 Wouldn't it be cleaner (and easy) to simple update https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/includes/fieldset.html#L16-L18 to check for an existing `field.readonly_widget` all the time? 4 5 As I'm not sure how to use the readonlyhashwidget step (field needs to *not* be readonly and widget then is readonly...?), I've gone the route of simply using custom methods to render the "field" but it's not as reusable as being able to set globally used readonly-widgets per form.Field class...