X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8bbef1628f527255a64f624a5508116eeccad083..af0693ddb5e4f6240d273c8a66fd1e6ef2a52872:/apps/wiki/admin.py?ds=sidebyside diff --git a/apps/wiki/admin.py b/apps/wiki/admin.py index 1a61b660..9725d0bf 100644 --- a/apps/wiki/admin.py +++ b/apps/wiki/admin.py @@ -2,4 +2,10 @@ from django.contrib import admin from wiki import models +class BookAdmin(admin.ModelAdmin): + prepopulated_fields = {'slug': ['title']} + + +admin.site.register(models.Book, BookAdmin) +admin.site.register(models.Chunk) admin.site.register(models.Theme)