From 26474f8cb675eacadeae2685769516f379132b7a Mon Sep 17 00:00:00 2001 From: williambratches Date: Tue, 25 Mar 2014 17:41:38 -0400 Subject: [PATCH] sorting should now function properly in moderator panel --- karmaworld/apps/moderation/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karmaworld/apps/moderation/admin.py b/karmaworld/apps/moderation/admin.py index 5eb6e6c..22b7f7e 100644 --- a/karmaworld/apps/moderation/admin.py +++ b/karmaworld/apps/moderation/admin.py @@ -61,7 +61,7 @@ class DepartmentModerator(DepartmentAdmin): # Identify fields to display on the Change page list_display = ('name', 'school', 'url') # Sort by highest number of flags first, and then by date for ties - ordering = () + ordering = ('-school', '-name') # Enable resetting flags actions = (reset_flags,) @@ -71,7 +71,7 @@ class ProfessorModerator(ProfessorAdmin): # Identify fields to display on the Change page list_display = ('name', 'email') # Sort by highest number of flags first, and then by date for ties - ordering = () + ordering = ('-name', '-email') # Enable resetting flags actions = (reset_flags,) -- 2.25.1