pycharm in gitignore
[prawokultury.git] / chunks / admin.py
1 from django.contrib import admin
2 from fnpdjango.utils.models.translation import translated_fields
3 from .models import Chunk, Attachment
4
5
6 class ChunkAdmin(admin.ModelAdmin):
7     list_display = ('key', 'description',)
8     search_fields = ('key', ) + translated_fields(('content',))
9
10 admin.site.register(Chunk, ChunkAdmin)
11
12
13 class AttachmentAdmin(admin.ModelAdmin):
14     list_display = ('key',)
15     search_fields = ('key',)
16
17 admin.site.register(Attachment, AttachmentAdmin)