Skip to content
Snippets Groups Projects
Commit 76138863 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Add search fields for images and image servers in admin

parent 86666545
No related branches found
No related tags found
1 merge request!2164Add search fields for images and image servers in admin
......@@ -8,6 +8,7 @@ from arkindex.images.views import ImageServerMergeView, ImageServerSplitView
class ImageServerAdmin(admin.ModelAdmin):
list_display = ('display_name', 'url')
search_fields = ('url', )
def get_urls(self):
# Give views access to this ModelAdmin instance
......@@ -46,6 +47,7 @@ class ImageAdmin(admin.ModelAdmin):
('status', EnumFieldListFilter),
)
fields = ('id', 'server', 'path', 'width', 'height', 'status')
search_fields = ('path', )
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