def save(self, *args, **kwargs): if self.id: print('updating') else: print('creating') super(Post, self).save(*args, **kwargs)