order keywords. fixes #219

This commit is contained in:
j 2012-01-31 05:54:18 +05:30
parent e3e117588f
commit 4073aa58dc
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ def _order_by_group(query):
elif query['group'] != "keyword":
order_by = (order_by, 'sortvalue')
else:
order_by = (order_by,)
order_by = (order_by, 'value')
else:
order_by = query['sort'][0]['operator'] == '-' and '-sortvalue' or 'sortvalue'
order_by = (order_by, 'items')

View file

@ -33,5 +33,5 @@ if [ $current -ne $new ]; then
cd pandora
./manage.py update_static
./manage.py compile_pyc
./manage.py sqldiff -a | grep -v BEGIN | grep -v COMMIT
./manage.py sqldiff -a | grep -v BEGIN | grep -v COMMIT | grep -v "\-\- No differences"
fi