comparison gpp/comments/admin.py @ 13:777451a98f9d

Shoutbox work: shouts now have absolute URLs. Shouts can now be flagged as abuse. Minor tweak to breadcrumbs css. Added flag date to comments admin.
author Brian Neal <bgneal@gmail.com>
date Thu, 16 Apr 2009 02:00:17 +0000
parents dbd703f7d63a
children 91a01b8b5885
comparison
equal deleted inserted replaced
12:f408971657b9 13:777451a98f9d
23 ordering = ('-creation_date', ) 23 ordering = ('-creation_date', )
24 search_fields = ('comment', 'user__username', 'ip_address') 24 search_fields = ('comment', 'user__username', 'ip_address')
25 raw_id_fields = ('user', 'content_type') 25 raw_id_fields = ('user', 'content_type')
26 26
27 class CommentFlagAdmin(admin.ModelAdmin): 27 class CommentFlagAdmin(admin.ModelAdmin):
28 list_display = ('__unicode__', 'get_comment_url') 28 list_display = ('__unicode__', 'flag_date', 'get_comment_url')
29 29
30 admin.site.register(Comment, CommentAdmin) 30 admin.site.register(Comment, CommentAdmin)
31 admin.site.register(CommentFlag, CommentFlagAdmin) 31 admin.site.register(CommentFlag, CommentFlagAdmin)