summaryrefslogtreecommitdiff
path: root/pgweb/docs/admin.py
diff options
context:
space:
mode:
authorMagnus Hagander2010-01-16 19:02:07 +0000
committerMagnus Hagander2010-01-16 19:02:07 +0000
commite82022eb1d73242950f2a48ecee0a6d694125443 (patch)
tree93e85897c8f70241c60cf6c80ebdf0a16525bc05 /pgweb/docs/admin.py
parent53fd3fcb83ef761af64542580231693a9a004747 (diff)
Add support for docs comments
Diffstat (limited to 'pgweb/docs/admin.py')
-rw-r--r--pgweb/docs/admin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pgweb/docs/admin.py b/pgweb/docs/admin.py
new file mode 100644
index 00000000..77ec3bbe
--- /dev/null
+++ b/pgweb/docs/admin.py
@@ -0,0 +1,7 @@
+from django.contrib import admin
+from models import *
+
+class DocCommentAdmin(admin.ModelAdmin):
+ list_display = ('file', 'version', 'posted_at', 'approved', )
+
+admin.site.register(DocComment, DocCommentAdmin)