1 from django.contrib import admin
3 from catalogue import models
5 class BookAdmin(admin.ModelAdmin):
6 prepopulated_fields = {'slug': ['title']}
7 search_fields = ['title']
10 admin.site.register(models.Book, BookAdmin)
11 admin.site.register(models.Chunk)
12 admin.site.register(models.Chunk.tag_model)
14 admin.site.register(models.Image)
15 admin.site.register(models.Image.tag_model)