I have an extra field in a Django ModelForm. It is a Boolean field and I want it to be set to true if another field, from the model is not null. How do I change the value of the field in the ModelForm’s constructor as I don’t want to create a ModelForm dynamically?
Share
Something like this might work for you: