From: williambratches Date: Tue, 25 Mar 2014 21:37:59 +0000 (-0400) Subject: change view for department and professor panels now work X-Git-Tag: release-20150131~144^2~12^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e3e712f9e99a0f9f36aa3abb72215317b49f6b88;p=oweals%2Fkarmaworld.git change view for department and professor panels now work --- 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,)