Skip to content
Snippets Groups Projects
Commit 330074ba authored by Valentin Rigal's avatar Valentin Rigal Committed by Erwan Rouchet
Browse files

Explicit fields in Corpus admin

parent 72df2070
No related branches found
No related tags found
1 merge request!2517Explicit fields in Corpus admin
......@@ -31,6 +31,8 @@ class ElementTypeInline(admin.TabularInline):
class CorpusAdmin(admin.ModelAdmin):
fields = ("id", "name", "description", "top_level_type", "public", "indexable", "maximum_task_ttl", "created")
readonly_fields = ("id", "created")
list_display = ("id", "name", "public", "top_level_type", "created")
search_fields = ("name", )
inlines = (ElementTypeInline, )
......
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