

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=commit._meta.exclude)

dataset/ETHPy150Open peterbe/django-mongokit/django_mongokit/forms/forms.py BaseDocumentForm.save/VarMisuse@67/84 `self`->`commit`