def __init__(self, name): self.name = name if not self.id and not self.slug: self.slug = slugify(unicode(name))
def slugify(cls, title): return slugify(unicode(title))