X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0cae17bec6d31806615fae59a5b3945016285fbe..d558ef2cdb31a67f24ffff34c30ccda3ebbee6c6:/apps/chunks/admin.py?ds=inline 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