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.
пре 12 година
David Winterbottom
fe0a37a780
Add compose function for combining decorators
пре 12 година
Georgiy Kutsurua
6dcff660de
Support other slugifier function
пре 13 година
David Winterbottom
af2dee1965
Add slug blacklist setting
So stopwords can be moved from slugs
пре 13 година
David Winterbottom
d41dc28d4b
Add support for a custom slug mapping setting
пре 13 година
David Winterbottom
f80cb5e9fa
Fix warning from bytestrings being slugified
пре 13 година
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 година