+ def _has_changed(self):
+ if model_to_dict(self) == self._initial_data:
+ return False
+ return True
+
+ def save(self, *args, **kwargs):
+ super(Navigation, self).save(*args, **kwargs)
+ if self._has_changed():
+ self._initial_data = model_to_dict(self)
+ Navigation.objects.clear_cache(self)