Commit f0d44e44 authored by Gary Wilson Jr's avatar Gary Wilson Jr
Browse files

Fixed #9882 -- Added `alters_data = True` to `BaseModelForm.save` method, thanks dc.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9678 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 7bf9626a
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -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