Ticket #8917: 8917.diff

File 8917.diff, 758 bytes (added by arien, 16 years ago)

Reverse ordering of comments in the admin and add submit_date to admin list_display.

  • django/contrib/comments/admin.py

     
    1616        ),
    1717     )
    1818
    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')
    2020    list_filter = ('submit_date', 'site', 'is_public', 'is_removed')
    2121    date_hierarchy = 'submit_date'
     22    ordering = ('-submit_date',)
    2223    search_fields = ('comment', 'user__username', 'user_name', 'user_email', 'user_url', 'ip_address')
    2324
    2425admin.site.register(Comment, CommentsAdmin)
Back to Top