1
0
mirror of https://github.com/django/django.git synced 2025-07-19 17:19:12 +00:00

[1.0.X] Fixed #9882 -- Added alters_data = True to BaseModelForm.save method, thanks dc.

Backport of r9678 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9679 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gary Wilson Jr 2008-12-23 05:52:57 +00:00
parent 1d37663aef
commit 9841776ec3

View File

@ -318,6 +318,8 @@ class BaseModelForm(BaseForm):
fail_message = 'changed'
return save_instance(self, self.instance, self._meta.fields, fail_message, commit)
save.alters_data = True
class ModelForm(BaseModelForm):
__metaclass__ = ModelFormMetaclass