Fix slug generation in wizard
This commit is contained in:
parent
78001259a1
commit
ff7d97b67c
3 changed files with 7 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue