Um, what about a regular python function which replaces '/' with '-'  
then calls slugify....

On 19 Nov 2008, at 20:44, Nick wrote:

>
> Hi,
>
> I have the following strings which is run through the slugify filter
> on my site:
>
> "Business/Executives"
>
> and it becomes "businessexecutives".  I'd like this to instead become
> "business-executives" (as they are actually two seperate words).
>
> I've tracked down the slugify filter to django/template/
> defaultfilters.py, but can't get my head round the regular expressions
> required to replace "/" with "-".
>
> Alternatively, instead of changing the core Django install, can I
> "extend" slugify in my own app to have this behaviour?
>
> Any help very much appreciated!
>
> Thanks,
> Nick
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to