rizumu/django-podcasting — pull request #11 by a8 (2012-05-22 08:00:08+00:00)
Title: Fix autoslug

Hi,

While releasing an episode called "Django-1.4" I noticed that the slug was not generated as "django-14" (The dot is removed by django.template.defaultfilters.slugify) but just "django". Since I do plan to produce an episode called "Django" in the future I'd like to save that slug for later.
BTW, the same bug is triggered by the current tests if the episodes created in setUp() call .save() which will calculate the slug.

Here are some enhanced tests for the AutoSlug field and a fix so the slug "django-14" would be created instead.

I hope that doesn't break anything else. Maybe there was a good reason for that behaviour of the code. In that case I am sorry.
It also would work for me if I could overwrite the slug field by hand in the admin.

Thanks,

- a8