internet -> Internet
[edumed.git] / chunks / admin.py
1 # -*- coding: utf-8 -*-
2 from django.contrib import admin
3
4 from chunks.models import Chunk, Attachment
5
6
7 class ChunkAdmin(admin.ModelAdmin):
8     list_display = ('key', 'description',)
9     search_fields = ('key', 'content',)
10
11 admin.site.register(Chunk, ChunkAdmin)
12
13
14 class AttachmentAdmin(admin.ModelAdmin):
15     list_display = ('key',)
16     search_fields = ('key',)
17
18 admin.site.register(Attachment, AttachmentAdmin)