David Winterbottom
|
fe0a37a780
|
Add compose function for combining decorators
|
12 gadus atpakaļ |
Georgiy Kutsurua
|
6dcff660de
|
Support other slugifier function
|
13 gadus atpakaļ |
David Winterbottom
|
af2dee1965
|
Add slug blacklist setting
So stopwords can be moved from slugs
|
13 gadus atpakaļ |
David Winterbottom
|
d41dc28d4b
|
Add support for a custom slug mapping setting
|
13 gadus atpakaļ |
David Winterbottom
|
f80cb5e9fa
|
Fix warning from bytestrings being slugified
|
13 gadus atpakaļ |
David Winterbottom
|
aab093deea
|
Convert non-ASCII char to ASCII for category slugs
This uses the unidecode package to convert non-ASCII words to ASCII
equivalents. We use a new slugify function to wrap this logic as we
will want to use it elsewhere.
See this StackOverflow thread for context:
http://stackoverflow.com/questions/702337/how-to-make-django-slugify-work-properly-with-unicode-strings/
Unidecode becomes a new dependency for Oscar.
https://pypi.python.org/pypi/Unidecode
Hat-tip to @avsazonov for suggesting this fix.
|
13 gadus atpakaļ |