diff --git a/pandora/item/views.py b/pandora/item/views.py index 8ea16b4c8..7527e742f 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -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') diff --git a/update.sh b/update.sh index 1f53899d4..d0febdf8f 100755 --- a/update.sh +++ b/update.sh @@ -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