Fixes #3866: Text counter with footnotes.
[redakcja.git] / src / catalogue / admin.py
1 from django.contrib import admin
2
3 from catalogue import models
4
5 class BookAdmin(admin.ModelAdmin):
6     list_display = ['title', 'public', '_published', '_new_publishable', 'project']
7     list_filter = ['public', '_published', '_new_publishable', 'project']
8     prepopulated_fields = {'slug': ['title']}
9     search_fields = ['title']
10
11
12 admin.site.register(models.Project)
13 admin.site.register(models.Book, BookAdmin)
14 admin.site.register(models.Chunk)
15 admin.site.register(models.Chunk.tag_model)
16
17 admin.site.register(models.Image)
18 admin.site.register(models.Image.tag_model)