def save(self, *args, **kwargs):
        # Flag object as updated if new or tracked fields have changed
        if self._state.adding or self.has_changed:
            self.updated = True

        super(TrackedModelMixin, self).save(*args, **kwargs)
        self.__initial = self._dict
Saves model and set initial state.
dataset/ETHPy150Open codeforsanjose/calischools/base/mixins.py/TrackedModelMixin.save