X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0cae17bec6d31806615fae59a5b3945016285fbe..f2c1566914d2ee615546134b9e080fc32c1a1094:/apps/chunks/admin.py?ds=sidebyside diff --git a/apps/chunks/admin.py b/apps/chunks/admin.py index c44d5a037..614e4e85b 100644 --- a/apps/chunks/admin.py +++ b/apps/chunks/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin -from chunks.models import Chunk +from chunks.models import Chunk, Attachment class ChunkAdmin(admin.ModelAdmin): @@ -9,3 +9,9 @@ class ChunkAdmin(admin.ModelAdmin): admin.site.register(Chunk, ChunkAdmin) + +class AttachmentAdmin(admin.ModelAdmin): + list_display = ('key',) + search_fields = ('key',) + +admin.site.register(Attachment, AttachmentAdmin) \ No newline at end of file