Skip to content
Snippets Groups Projects
Commit 9392dd5b authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'admin-activity' into 'master'

Add activity state to dataimport admin

Closes #710

See merge request !1309
parents 244b7ac3 1a476e3f
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