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