def has_changed(self):
<EOL>if self.formsets:<EOL><INDENT>for formset in self.formsets.values():<EOL><INDENT>for form in formset.forms:<EOL><INDENT>if form.has_changed():<EOL><INDENT>return True<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return bool(self.changed_data)<EOL>
Return True if data differs from initial.