diff --git apps discussion admin py apps discussion admin py --- apps

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
diff --git a/apps/discussion/admin.py b/apps/discussion/admin.py
--- a/apps/discussion/admin.py
+++ b/apps/discussion/admin.py
@@ -9,5 +9,10 @@ class CommentNodeAdmin(admin.ModelAdmin)
list_display = ('get_clean_html', 'user', 'pub_date', 'content_type',
'object_id', 'reply_to_id', 'approved')
list_filter = ('approved',)
+ actions = ['comment_approve']
+
+ def comment_approve(self, request, queryset):
+ queryset.update(approved=True)
+ comment_approve.short_description = u'Mark selected comments as approved'
admin.site.register(CommentNode, CommentNodeAdmin)