示例#1
0
文件: models.py 项目: ryankask/esther
 def __init__(self, name):
     self.name = name
     if not self.id and not self.slug:
         self.slug = slugify(unicode(name))
示例#2
0
文件: models.py 项目: keybits/esther
 def slugify(cls, title):
     return slugify(unicode(title))
示例#3
0
文件: models.py 项目: ryankask/esther
 def __init__(self, name):
     self.name = name
     if not self.id and not self.slug:
         self.slug = slugify(unicode(name))
示例#4
0
 def slugify(cls, title):
     return slugify(unicode(title))