Changes between Initial Version and Version 1 of Ticket #30577, comment 4


Ignore:
Timestamp:
Aug 4, 2021, 10:15:21 AM (3 years ago)
Author:
Filipe

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30577, comment 4

    initial v1  
    22
    33Wouldn'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
     5As 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...
Back to Top