Ticket #8917: comments-ordering.diff
File comments-ordering.diff, 1.3 KB (added by , 16 years ago) |
---|
-
Users/wilson/Development/django/trunk/django/contrib/comments/admin.py
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 22 search_fields = ('comment', 'user__username', 'user_name', 'user_email', 'user_url', 'ip_address') -
Users/wilson/Development/django/trunk/django/contrib/comments/models.py
69 69 70 70 class Meta: 71 71 db_table = "django_comments" 72 ordering = (' submit_date',)72 ordering = ('-submit_date',) 73 73 permissions = [("can_moderate", "Can moderate comments")] 74 74 75 75 def __unicode__(self):