django-extensions/django-extensions — pull request #238 by martino (2012-09-18 15:09:09+00:00)
Title: Fixed bug on AutoSlugField with empty populate_from field

This test failed on the last assertion

m = SluggedTestModel(title='')
m.save()
self.assertEqual(m.slug, '-2')

n = SluggedTestModel(title='')
n.save()
self.assertEqual(n.slug, '-3')

n.save()
self.assertEqual(n.slug, '-3')