X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1fbf854ce423d2d56723ff10608267403f4916b0..577bb2b84d936d65bf072ef0a6b898db9d6e77ab:/apps/wiki/admin.py?ds=sidebyside diff --git a/apps/wiki/admin.py b/apps/wiki/admin.py index 1a61b660..b742f70d 100644 --- a/apps/wiki/admin.py +++ b/apps/wiki/admin.py @@ -2,4 +2,12 @@ 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) + +admin.site.register(models.Chunk.tag_model)