Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #8917 -- Comments are now displayed in reverse order by submit_…

…date in the admin. Thanks to arien for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b79cb53d766993a8a424fbd164bc1302ce18e767 1 parent 96becf2
authored September 16, 2008

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/contrib/comments/admin.py
3  django/contrib/comments/admin.py
@@ -16,9 +16,10 @@ class CommentsAdmin(admin.ModelAdmin):
16 16
         ),
17 17
      )
18 18
 
19  
-    list_display = ('name', 'content_type', 'object_pk', 'ip_address', 'is_public', 'is_removed')
  19
+    list_display = ('name', 'content_type', 'object_pk', 'ip_address', 'submit_date', 'is_public', 'is_removed')
20 20
     list_filter = ('submit_date', 'site', 'is_public', 'is_removed')
21 21
     date_hierarchy = 'submit_date'
  22
+    ordering = ('-submit_date',)
22 23
     search_fields = ('comment', 'user__username', 'user_name', 'user_email', 'user_url', 'ip_address')
23 24
 
24 25
 admin.site.register(Comment, CommentsAdmin)

0 notes on commit b79cb53

Please sign in to comment.
Something went wrong with that request. Please try again.