fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Librarian: support for <abstrakt>
[wolnelektury.git]
/
apps
/
chunks
/
admin.py
diff --git
a/apps/chunks/admin.py
b/apps/chunks/admin.py
index
c44d5a0
..
61e9f87
100644
(file)
--- a/
apps/chunks/admin.py
+++ b/
apps/chunks/admin.py
@@
-1,6
+1,6
@@
from django.contrib import admin
from django.contrib import admin
-from chunks.models import Chunk
+from chunks.models import Chunk
, Attachment
class ChunkAdmin(admin.ModelAdmin):
class ChunkAdmin(admin.ModelAdmin):
@@
-9,3
+9,9
@@
class ChunkAdmin(admin.ModelAdmin):
admin.site.register(Chunk, ChunkAdmin)
admin.site.register(Chunk, ChunkAdmin)
+
+class AttachmentAdmin(admin.ModelAdmin):
+ list_display = ('key',)
+ search_fields = ('key',)
+
+admin.site.register(Attachment, AttachmentAdmin)