X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0cae17bec6d31806615fae59a5b3945016285fbe..a1edf3f1a7cff6e6f4d85a4288ca9b1d5cd3b254:/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