[Answer]-Show/Make a field editable or disabled in admin based on other field's value


You’ll need to add some JavaScript to the change form for your XYZModel admin class. This can be done by overriding the change form for the template, or by adding a reference to the JavaScript file in a custom form class for your model admin.

Leave a comment