From: williambratches Date: Tue, 25 Mar 2014 21:41:38 +0000 (-0400) Subject: sorting should now function properly in moderator panel X-Git-Tag: release-20150131~144^2~12^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=26474f8cb675eacadeae2685769516f379132b7a;p=oweals%2Fkarmaworld.git sorting should now function properly in moderator panel --- 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,)