Maik Hoepfel
325eee6830
Ensure Oscar always displays timezone-aware datetimes
In a few cases, django.templatefilters.date was used to format a
datetime as string. This filters expects localtime, but was always
passed time in UTC.
Introduced a helper function that should be used instead of the template
filter.
il y a 12 ans
David Winterbottom
fe0a37a780
Add compose function for combining decorators
il y a 12 ans
Georgiy Kutsurua
6dcff660de
Support other slugifier function
il y a 13 ans
David Winterbottom
af2dee1965
Add slug blacklist setting
So stopwords can be moved from slugs
il y a 13 ans
David Winterbottom
d41dc28d4b
Add support for a custom slug mapping setting
il y a 13 ans
David Winterbottom
f80cb5e9fa
Fix warning from bytestrings being slugified
il y a 13 ans
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.
il y a 13 ans