Changes between Initial Version and Version 1 of Ticket #29741, comment 1


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29741, comment 1

    initial v1  
    11The 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?
    22
     3See [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