I overrided the predefined model method save() and do_something():
from django.db import models
class Blog(models.Model):
name = models.CharField(max_length=100)
tagline = models.TextField()
def save(self, *args, **kwargs):
do_something()
super().save(*args, **kwargs)
then I deleted the overriding code:
from django.db import models
class Blog(models.Model):
name = models.CharField(max_length=100)
tagline = models.TextField()
BUT the do_something() was still invoked??
Any idea on how to prevent do_something() working as the default method save() does?