How to auto-populate field in Django admin based on another fields value

I want to make a dependent auto-populate field which get populated with custom values when another field is selected by the user. I have searched but was not able to find the correct help.

My case

I want when the fertiliser name is selected the above field "phosphate" etc. should get populated based on the fertiliser name selected.

Back to Top