David Winterbottom
0084a44e5f
Revert review form API to be more explicit
See https://gist.github.com/codeinthehole/6178034 for some discussion.
hace 12 años
David Winterbottom
6667e2d8f1
All integration tests pass! Woop!
hace 12 años
David Winterbottom
51a772ebf1
Switch style of form to assign fields to instance param
hace 12 años
David Winterbottom
51156b9fa0
Rework review/vote validation
Use field validators and model clean methods instead of forms.
Include new methods for voting up and down.
Add more tests.
hace 12 años
David Winterbottom
c070170e06
Split cleaning behaviour into form
Methods like clean_title don't get called dynamically. Have moved
cleaning logic to the form which seems a more natural place.
Introduce some new test folders.
hace 12 años
st4lk
e9e1ffeee7
Add 'parent' argument to category_tree template tag
If parent is given, only parent descendant categories will be returned.
Fixes #741
hace 12 años
David Winterbottom
4337a27505
Fix two testing issues arising in Django 1.5
hace 12 años
David Winterbottom
80384a4007
Fix logic error in product availability
Introduced in 7fd62f2af0 .
hace 12 años
David Winterbottom
aa7f899c51
Move catalogue tests to integration folder...
...as they are all integration tests (they save stuff).
hace 13 años
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.
hace 13 años
David Winterbottom
fc9999e70b
Rework subtree updating after move
New impl is considerably simpler and lets the save method update each
node's slug and full name.
hace 13 años
David Winterbottom
5ba13b2330
Add test scaffolding around Category class
hace 13 años
David Winterbottom
8e4d5edd95
Move category tests to integration folder
They use the DB so they are not really unit tests.
hace 13 años