Skip to content

Commit

Permalink
Added test for fix in fe538d1
Browse files Browse the repository at this point in the history
  • Loading branch information
philb61 committed May 4, 2016
1 parent fe538d1 commit f6d1a12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoslug/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ def test_autoslug_with_manager_name(self):
b = NonDeletableModelWithUniqueSlug.objects.create(name='My name')
self.assertEqual(b.slug, u'my-name-2')

def test_deconstruct_with_manager(self):
a = SharedSlugSpace(name='TestName')
a.save()
_, _, _, kwargs = a._meta.get_field('slug').deconstruct()
self.assertNotIn('manager', kwargs)


class AutoSlugModelTranslationTestCase(TestCase):

Expand Down

0 comments on commit f6d1a12

Please sign in to comment.