示例#1
0
 def slug(self):
     """Returns a slugified version from the category title"""
     return slugify(self.title)
示例#2
0
文件: models.py 项目: cluo/flaskbb
 def slug(self):
     """Returns a slugified version from the category title"""
     return slugify(self.title)
示例#3
0
 def slug(self):
     """Returns a slugified version from the forum title"""
     return slugify(self.title)
示例#4
0
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"
示例#5
0
文件: models.py 项目: cluo/flaskbb
 def slug(self):
     """Returns a slugified version from the forum title"""
     return slugify(self.title)
示例#6
0
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"
示例#7
0
 def slug(self):
     """Returns a slugified version of the topic title."""
     return slugify(self.title)
示例#8
0
 def slug(self):
     """Returns a slugified version of the topic title."""
     return slugify(self.title)
示例#9
0
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'
示例#10
0
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'