how to override save method in django

def save(self, *args, **kwargs):
	if not self.id:
	# Object is a new instance

	return super(Model, self).save(*args, **kwargs)

Here is what the above code is Doing:
1. If the object is new, it will save the object.
2. If the object is not new, it will check if the object has changed.
3. If the object has changed, it will save the object.
4. If the object has not changed, it will not save the object.