def slug(self): """Returns a slugified version from the category title""" return slugify(self.title)
def slug(self): """Returns a slugified version from the forum title""" return slugify(self.title)
def test_slugify(): """Test the slugify helper method.""" assert slugify(u"Hello world") == u"hello-world" assert slugify(u"¿Cómo está?") == u"como-esta"
def slug(self): """Returns a slugified version of the topic title.""" return slugify(self.title)
def test_slugify(): """Test the slugify helper method.""" assert slugify(u'Hello world') == u'hello-world' assert slugify(u'¿Cómo está?') == u'como-esta'