def forms_valid(self, form, inlines):
response = self.form_valid(form)<EOL>for formset in inlines:<EOL><INDENT>formset.save()<EOL><DEDENT>return response<EOL>
If the form and formsets are valid, save the associated models.