Skip to content
Snippets Groups Projects
Commit 1a476e3f authored by Valentin Rigal's avatar Valentin Rigal Committed by Bastien Abadie
Browse files

Add activity state to dataimport admin

parent 244b7ac3
No related branches found
No related tags found
1 merge request!1309Add activity state to dataimport admin
......@@ -28,12 +28,12 @@ class DataImportAdmin(admin.ModelAdmin):
list_display = ('id', 'creator', 'corpus', 'state', 'mode')
list_filter = [('mode', EnumFieldListFilter), ]
fieldsets = (
(None, {'fields': ('id', 'creator', 'corpus', 'state', 'mode', 'workflow')}),
(None, {'fields': ('id', 'creator', 'corpus', 'state', 'mode', 'workflow', 'activity_state')}),
('Elements filters', {
'fields': ('element', 'element_type', 'folder_type', 'name_contains', 'best_class')
}),
)
readonly_fields = ('id', 'workflow', 'state')
readonly_fields = ('id', 'workflow', 'state', 'activity_state')
raw_id_fields = ('element', )
inlines = [DataFileInline, WorkerRunInline, ElementInline]
......
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