We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe538d1 commit f6d1a12Copy full SHA for f6d1a12
autoslug/tests/tests.py
@@ -241,6 +241,12 @@ def test_autoslug_with_manager_name(self):
241
b = NonDeletableModelWithUniqueSlug.objects.create(name='My name')
242
self.assertEqual(b.slug, u'my-name-2')
243
244
+ def test_deconstruct_with_manager(self):
245
+ a = SharedSlugSpace(name='TestName')
246
+ a.save()
247
+ _, _, _, kwargs = a._meta.get_field('slug').deconstruct()
248
+ self.assertNotIn('manager', kwargs)
249
+
250
251
class AutoSlugModelTranslationTestCase(TestCase):
252
0 commit comments