summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Reporting/views.py
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-10-18 07:49:38 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-10-18 07:49:38 -0500
commit9bbc29cb5937f8f81df14a215346d0d61b3ae7bb (patch)
treefac40cc626ba49cdfb8685c93cb14b15452d2645 /src/lib/Bcfg2/Reporting/views.py
parent01ce8a46b865be1b60b6ec7439ec41db1c68485c (diff)
downloadbcfg2-9bbc29cb5937f8f81df14a215346d0d61b3ae7bb.tar.gz
bcfg2-9bbc29cb5937f8f81df14a215346d0d61b3ae7bb.tar.bz2
bcfg2-9bbc29cb5937f8f81df14a215346d0d61b3ae7bb.zip
Sort links were referencing the old schema
Diffstat (limited to 'src/lib/Bcfg2/Reporting/views.py')
-rw-r--r--src/lib/Bcfg2/Reporting/views.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Reporting/views.py b/src/lib/Bcfg2/Reporting/views.py
index 9191c1f27..7dc216bd4 100644
--- a/src/lib/Bcfg2/Reporting/views.py
+++ b/src/lib/Bcfg2/Reporting/views.py
@@ -303,10 +303,8 @@ def client_detailed_list(request, timestamp=None, **kwargs):
if sort_key == "client":
kwargs['orderby'] = "%s__name" % sort
- elif sort_key == "good":
- kwargs['orderby'] = "%scount" % sort
- elif sort_key in ["bad", "modified", "extra"]:
- kwargs['orderby'] = "%s_entries" % sort
+ elif sort_key in ["good", "bad", "modified", "extra"]:
+ kwargs['orderby'] = "%s_count" % sort
else:
kwargs['orderby'] = sort
kwargs['sort'] = sort