Ticket #11404: formset-has-changed.diff
File formset-has-changed.diff, 620 bytes (added by , 15 years ago) |
---|
-
django/forms/formsets.py
263 263 """ 264 264 pass 265 265 266 def has_changed(self): 267 """ 268 Returns true if data in any form differs from initial. 269 """ 270 for form in self.forms: 271 if form.has_changed(): 272 return True 273 return False 274 266 275 def add_fields(self, form, index): 267 276 """A hook for adding extra fields on to each form instance.""" 268 277 if self.can_order: