I have Application (in the sense of applying for something) for Project which is covered by ApplicationForm which extends ModelForm. Application has a required budget
, which makes it a required field in ApplicationForm.
If the project has a preset budget, applications against it cannot have their budgets editable on create nor on update. I found this answer on how to set a field as read-only and how to scrub that field, https://stackoverflow.com/a/325038/604511
So how do I create ApplicationForm objects that behave this way based on parent Project?