Move to src dir.
[edumed.git] / src / comment / admin.py
diff --git a/src/comment/admin.py b/src/comment/admin.py
new file mode 100644 (file)
index 0000000..7c9ce9a
--- /dev/null
@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+from django.contrib import admin
+
+from .models import CommentDocument
+
+
+class CommentDocumentAdmin(admin.ModelAdmin):
+    prepopulated_fields = {"slug": ("name",)}
+
+admin.site.register(CommentDocument, CommentDocumentAdmin)