What is the best way to conditionally display a field in the admin panel depending on the values of other fields?
In particular, I am thinking of add_form and change_form. Whenever a specific selection is selected, I would like to hide or disable some fields.
I think this might require a javascript solution, but I'm wondering if there is a better way (e.g. built-in) for this.
django django-admin
IntrepidDude
source share