Doesn't work for populate_from='title' when title is a filename

Issue #23 new
Joachim created an issue

Hi, I use the django-autoslug package which does great work in most of the cases.

I have those fields in my model:

class Design(TimeStampedModel):
    title = models.CharField(max_length=180, unique=True, null=True, help_text="The name of your design")
    slug = AutoSlugField(populate_from='title', unique=True)

When I have a title with the filename, such as: can.2015-01-14.02-54-37.stl, the generated slug is design-3 (apparently it doesn't manage to generate an autoslug for such names.

I'd be happy to hear your recommmendations.

Thanks.

Comments (0)

  1. Log in to comment