def save(self, *args, **kwargs): send_pings(self, reverse("feeds.notes")) return super(Note, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.modified_at = datetime.now() if self.status == Post.PUBLISHED: send_pings(self, reverse("feeds.blog")) return super(Post, self).save(*args, **kwargs)