Django admin validation for inline form which rely on the total of a field between all forms
- 阅读更多 关于 Django admin validation for inline form which rely on the total of a field between all forms
问题 Forgive me if this has been answered before, I couldn't find an answer where the validation depended on the aggregate of inline forms. Little background: I'm doing a site for an insurance broker which has 'Policies' and a 'Total Commission' of that policy. There are also 'Resellers' which are added to the 'Policy' along with a commission which goes to them (can have any number of resellers). The total commission between the resellers has to be less than the total commission. I have an admin