projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f49f53a
)
Allow doc comment filtering by approval status
author
Magnus Hagander
<magnus@hagander.net>
Wed, 30 Jan 2013 10:45:31 +0000
(11:45 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Wed, 30 Jan 2013 10:45:31 +0000
(11:45 +0100)
pgweb/docs/admin.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/docs/admin.py
b/pgweb/docs/admin.py
index 821f92610737f3de90da3228cafcc9c4e0c1ac84..d75971b14f2a40546be20442c8489eecf0c444cc 100644
(file)
--- a/
pgweb/docs/admin.py
+++ b/
pgweb/docs/admin.py
@@
-11,6
+11,7
@@
approve_doccomment.short_description = 'Approve comment'
class DocCommentAdmin(admin.ModelAdmin):
list_display = ('file', 'version', 'posted_at', 'approved', )
+ list_filter = ('approved', )
actions = [approve_doccomment, ]
admin.site.register(DocComment, DocCommentAdmin)