Commits

Mikhail Korobov committed 9eca136

Tests for recently introduced bug in unique slug generation. See #6.

  • Participants
  • Parent commits 5c03892

Comments (0)

Files changed (1)

File autoslug/tests.py

     >>> d = ModelWithUniqueSlugFK.objects.create(name=greeting, simple_model=sm1)
     >>> d.slug
     'hello-world-3'
+    >>> sm3.name = 'test'
+    >>> sm3.save()
+    >>> c.slug
+    'hello-world'
+    >>> c.save()
+    >>> c.slug
+    'hello-world-4'
     """
     name = CharField(max_length=200)
     simple_model = ForeignKey(SimpleModel)