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
@@ -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)