Changes between Version 2 and Version 3 of Ticket #29741, comment 1
- Timestamp:
- Sep 7, 2018, 3:33:56 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29741, comment 1
v2 v3 1 The inline's FormSet is given the parent object instance (already updated b ysaved if the parent form was valid) so can you not leverage that to validate against?1 The inline's FormSet is given the parent object instance (already updated but not saved if the parent form was valid) so can you not leverage that to validate against? 2 2 3 3 See [https://docs.djangoproject.com/en/2.1/topics/forms/modelforms/#overriding-methods-on-an-inlineformset Overriding Methods on an InlineFormSet]. Can you not implement `clean()` accessing the parent object as `self.instance`?