Skip to content
Snippets Groups Projects
Commit c73fabda authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Add to admin

parent 3b3fa9c4
No related branches found
No related tags found
1 merge request!21Offline manifest importation
from django.contrib import admin
from arkindex.images.models import ImageServer, Image
from enumfields.admin import EnumFieldListFilter
class ImageServerAdmin(admin.ModelAdmin):
......@@ -7,9 +8,12 @@ class ImageServerAdmin(admin.ModelAdmin):
class ImageAdmin(admin.ModelAdmin):
list_display = ('path', 'server', 'width', 'height')
list_filter = ('server', )
fields = ('id', 'server', 'path', 'width', 'height')
list_display = ('path', 'server', 'width', 'height', 'status')
list_filter = (
('server', admin.RelatedFieldListFilter),
('status', EnumFieldListFilter),
)
fields = ('id', 'server', 'path', 'width', 'height', 'status')
readonly_fields = ('id', )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment