Changes between Version 2 and Version 3 of Ticket #29741, comment 1


Ignore:
Timestamp:
Sep 7, 2018, 3:33:56 AM (6 years ago)
Author:
Carlton Gibson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29741, comment 1

    v2 v3  
    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?
     1The 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?
    22
    33See [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`?
Back to Top