update editor
[redakcja.git] / apps / catalogue / admin.py
1 # -*- coding: utf-8 -*-
2 from django.contrib import admin
3
4 from catalogue import models
5
6
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']
12
13
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)
18
19 admin.site.register(models.Chunk.tag_model)