Exemple #1
0
 def get_absolute_url(self):
     value = utils.slugify(self.title)
     return ("techism.events.views.details", [iri_to_uri("%s-%s" % (value, self.id))])
Exemple #2
0
 def test_slugify(self):
     slugified = utils.slugify(u'A string with\twhitespace, UPPER CASE, unicode (ä), under_score _.')
     self.assertEqual(slugified, "a-string-with-whitespace-upper-case-unicode-a-under_score-_")