fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Browsing and showing comment documents
[edumed.git]
/
comment
/
admin.py
diff --git a/comment/admin.py
b/comment/admin.py
new file mode 100644
(file)
index 0000000..
8b3cbd5
--- /dev/null
+++ b/
comment/admin.py
@@ -0,0
+1,9
@@
+from django.contrib import admin
+
+from .models import CommentDocument
+
+
+class CommentDocumentAdmin(admin.ModelAdmin):
+ prepopulated_fields = {"slug": ("name",)}
+
+admin.site.register(CommentDocument, CommentDocumentAdmin)