Exemplo n.º 1
0
 def createlink(self):
     if (self.link == ""):
         self.link = transliterate(self.title)
Exemplo n.º 2
0
 def publish(self):
     self.published_date = timezone.now()
     if (self.link == ""):
         self.link = transliterate(self.title)
     self.save()