Mercurial > public > sg101
comparison gpp/comments/admin.py @ 140:91a01b8b5885
Comments: in order to show a green board concept while looking at the comments in the admin, added a 'not removed' boolean function.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 30 Nov 2009 03:20:24 +0000 |
parents | 777451a98f9d |
children | b4305e18d3af |
comparison
equal
deleted
inserted
replaced
139:e04d91babfcf | 140:91a01b8b5885 |
---|---|
15 ), | 15 ), |
16 ('Metadata', | 16 ('Metadata', |
17 {'fields': ('ip_address', 'is_public', 'is_removed')} | 17 {'fields': ('ip_address', 'is_public', 'is_removed')} |
18 ), | 18 ), |
19 ) | 19 ) |
20 list_display = ('__unicode__', 'content_type', 'object_id', 'ip_address', 'creation_date', 'is_public', 'is_removed') | 20 list_display = ('__unicode__', 'content_type', 'object_id', 'ip_address', |
21 'creation_date', 'is_public', 'not_removed') | |
21 list_filter = ('creation_date', 'is_public', 'is_removed') | 22 list_filter = ('creation_date', 'is_public', 'is_removed') |
22 date_hierarchy = 'creation_date' | 23 date_hierarchy = 'creation_date' |
23 ordering = ('-creation_date', ) | 24 ordering = ('-creation_date', ) |
24 search_fields = ('comment', 'user__username', 'ip_address') | 25 search_fields = ('comment', 'user__username', 'ip_address') |
25 raw_id_fields = ('user', 'content_type') | 26 raw_id_fields = ('user', 'content_type') |