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

Prevent thousands of SQL queries in MetaData admin

parent 5af0b77e
No related branches found
No related tags found
1 merge request!1421Prevent thousands of SQL queries in MetaData admin
......@@ -76,7 +76,7 @@ class MetaDataAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'type', )
list_filter = [('type', EnumFieldListFilter), ]
readonly_fields = ('id', )
raw_id_fields = ('element', 'entity', )
raw_id_fields = ('element', 'entity', 'worker_version')
class MetaDataInline(admin.TabularInline):
......
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