def createlink(self): if (self.link == ""): self.link = transliterate(self.title)
def publish(self): self.published_date = timezone.now() if (self.link == ""): self.link = transliterate(self.title) self.save()