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

Merge branch 'entity-admin-raw' into 'master'

Prevent thousands of SQL queries in Entity admin

See merge request !1422
parents 0d87e6e9 67f25c08
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