1 # -*- coding: utf-8 -*-
2 from django.contrib import admin
4 from catalogue import models
7 class BookAdmin(admin.ModelAdmin):
8 list_display = ['title', 'public', '_published', '_new_publishable', 'project']
9 list_filter = ['public', '_published', '_new_publishable', 'project']
10 prepopulated_fields = {'slug': ['title']}
11 search_fields = ['title']
14 admin.site.register(models.Project)
15 admin.site.register(models.Book, BookAdmin)
16 admin.site.register(models.Chunk)
17 admin.site.register(models.Template)
19 admin.site.register(models.Chunk.tag_model)