def save(self, commit=True):
        if self.instance.get('_id', None) is None:
            fail_message = 'created'
        else:
            fail_message = 'changed'
        return save_instance(self, self.instance, self._meta.fields,
                             fail_message, commit, exclude=self._meta.exclude)
dataset/ETHPy150Open peterbe/django-mongokit/django_mongokit/forms/forms.py/BaseDocumentForm.save/original