I'm trying to make some fields in Django admin read_only based on other fields value on creating and before save the record.
for example cloths model:
and it has Boolean field called is_t_shirt when the user start fill the form when he put this indicator True I want to make other fields such as long_of_leg read only and when that indicator False this field will be editable.
All of that before saving and when editing existing or creating new record, may I can called that as real time or run time.
many thanks
 
     
    