changeset tagging in dvcs,
[redakcja.git] / apps / wiki / admin.py
index 60a78f4..9725d0b 100644 (file)
@@ -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)