Changes between Version 1 and Version 2 of Ticket #29741, comment 1
- Timestamp:
- Sep 7, 2018, 3:33:46 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29741, comment 1
v1 v2 1 The inline's FormSet is given the parent object instance (already saved 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 by 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`?