Example #1
0
    def save(self, **kwargs):
        if self.slug is None:
            self.slug = slugify(self.name)

        super(Project, self).save(**kwargs)
Example #2
0
 def test_slugify(self):
     self.assertEqual(slugify("Mississippi Election Results"),
                      "mississippi-election-results")