X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/cbb14d2ed3eb0b72a6c3c68ab93847923e6142f4..7671cda4767353b2a93b05f2332ba6e2f236c468:/apps/wiki/admin.py diff --git a/apps/wiki/admin.py b/apps/wiki/admin.py index 60a78f4a..9725d0bf 100644 --- a/apps/wiki/admin.py +++ b/apps/wiki/admin.py @@ -2,5 +2,10 @@ from django.contrib import admin from wiki import models -admin.site.register(models.Book) +class BookAdmin(admin.ModelAdmin): + prepopulated_fields = {'slug': ['title']} + + +admin.site.register(models.Book, BookAdmin) +admin.site.register(models.Chunk) admin.site.register(models.Theme)