djangosnippets.org: Latest snippets posted by Aliquiphttps://djangosnippets.org/users/Aliquip/2007-03-10T14:11:32.151221-06:00AliquipAutomatically slugify slug fields in your models
2007-03-10T14:11:32.151221-06:00Aliquiphttps://djangosnippets.org/snippets/98/<p><em>I suppose I'm kind of stubborn, but I prefer to use underscores to replace spaces and other characters. Of course, that shouldn't hold you back from using the build-in slugify filter :)</em>
</p>
<p><strong> Forcing the slug to use ASCII equivalents: </strong>
</p>
<p>Transforming titles like "Äës" to slugs like "aes" was kind of …</p>
Freely redistributable