Markus Bertheau
c53d6cc0ae
Fix all flake8 issues.
12 anos atrás
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 anos atrás
David Winterbottom
fe0a37a780
Add compose function for combining decorators
12 anos atrás
Georgiy Kutsurua
6dcff660de
Support other slugifier function
13 anos atrás
David Winterbottom
af2dee1965
Add slug blacklist setting
So stopwords can be moved from slugs
13 anos atrás
David Winterbottom
d41dc28d4b
Add support for a custom slug mapping setting
13 anos atrás
David Winterbottom
f80cb5e9fa
Fix warning from bytestrings being slugified
13 anos atrás
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 anos atrás