Fix slug generation in wizard

This commit is contained in:
Iacopo Spalletti 2016-10-24 18:22:56 +02:00
commit ff7d97b67c
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
3 changed files with 7 additions and 0 deletions

View file

@ -439,6 +439,10 @@ class AdminTest(BaseTest):
class ModelsTest(BaseTest):
def test_slug(self):
post = Post.objects.language('en').create(title='I am a title')
self.assertEqual(post.slug, 'i-am-a-title')
def test_model_attributes(self):
self.get_pages()