I use this snippet to show several fields in my admin backend as readonly, but as noticed in the comments, it does not work on stackedinline/tabularinline. Is there any other wa
As is the case with JQuery, it seems you can achieve this by changing an attr called "disabled" (works in my Safari, OK we're now in 2013 :-) ). Example below:
def get_form(self, request, obj=None, **kwargs):
result = super(, self).get_form(request, obj=obj, **kwargs)
result.base_fields[].widget.attrs['disabled'] = 'disabled'
return result