Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
Wilson Miner authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/contrib/comments/admin.py
View
3  django/contrib/comments/admin.py
@@ -16,9 +16,10 @@ class CommentsAdmin(admin.ModelAdmin):
),
)
- list_display = ('name', 'content_type', 'object_pk', 'ip_address', 'is_public', 'is_removed')
+ list_display = ('name', 'content_type', 'object_pk', 'ip_address', 'submit_date', 'is_public', 'is_removed')
list_filter = ('submit_date', 'site', 'is_public', 'is_removed')
date_hierarchy = 'submit_date'
+ ordering = ('-submit_date',)
search_fields = ('comment', 'user__username', 'user_name', 'user_email', 'user_url', 'ip_address')
admin.site.register(Comment, CommentsAdmin)
Please sign in to comment.
Something went wrong with that request. Please try again.