From e3e712f9e99a0f9f36aa3abb72215317b49f6b88 Mon Sep 17 00:00:00 2001 From: williambratches Date: Tue, 25 Mar 2014 17:37:59 -0400 Subject: [PATCH] change view for department and professor panels now work --- karmaworld/apps/moderation/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/karmaworld/apps/moderation/admin.py b/karmaworld/apps/moderation/admin.py index 4b14b81..5eb6e6c 100644 --- a/karmaworld/apps/moderation/admin.py +++ b/karmaworld/apps/moderation/admin.py @@ -52,7 +52,7 @@ class NoteModerator(NoteAdmin): list_display = ('name', 'flags', 'course', 'is_hidden', 'uploaded_at', 'ip') # Sort by highest number of flags first, and then by date for ties ordering = ('-flags', '-uploaded_at') - # Enable resetting flags + # Enable resetting flagsoo actions = (reset_flags, hide_notes, show_notes) # Structure views of Department objects @@ -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 = ('-flags', '-uploaded_at') + ordering = () # 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 = ('-flags', '-uploaded_at') + ordering = () # Enable resetting flags actions = (reset_flags,) -- 2.25.1