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

Prevent thousands of SQL queries in Entity admin

parent 0d87e6e9
No related branches found
No related tags found
1 merge request!1422Prevent thousands of SQL queries in Entity admin
......@@ -142,6 +142,7 @@ class EntityAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'type')
list_filter = [('type', EnumFieldListFilter), 'corpus']
readonly_fields = ('id', )
raw_id_fields = ('worker_version', )
search_fields = ('name', )
inlines = (EntityLinkInLine, )
form = EntityMetaForm
......
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