Django

Code

Changeset 9038

Show
Ignore:
Timestamp:
09/15/08 19:25:21 (4 months ago)
Author:
wilson
Message:

Fixed #8917 -- Comments are now displayed in reverse order by submit_date in the admin. Thanks to arien for the patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/comments/admin.py

    r8557 r9038  
    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