1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django.contrib import admin
6 from chunks.models import Chunk, Attachment
9 class ChunkAdmin(admin.ModelAdmin):
10 list_display = ('key', 'description',)
11 search_fields = ('key', 'content',)
13 admin.site.register(Chunk, ChunkAdmin)
16 class AttachmentAdmin(admin.ModelAdmin):
17 list_display = ('key',)
18 search_fields = ('key',)
20 admin.site.register(Attachment, AttachmentAdmin)