X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d0f0e1412cc42d366b234e798dfb68feed05d751..d555d988764995ea1f9f5ece46f453a66f09b334:/src/comment/admin.py?ds=sidebyside diff --git a/src/comment/admin.py b/src/comment/admin.py new file mode 100644 index 0000000..7c9ce9a --- /dev/null +++ b/src/comment/admin.py @@ -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)