Skip to content
Snippets Groups Projects
Commit 17aec33a authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Merge branch 'reduce-elementadmin-queries' into 'master'

Reduce number of queries in Element Admin

Closes #587

See merge request !1245
parents 355c3d7a 69c2cf49
No related branches found
No related tags found
1 merge request!1245Reduce number of queries in Element Admin
......@@ -37,7 +37,7 @@ class CorpusAdmin(admin.ModelAdmin):
class ClassificationInline(admin.TabularInline):
model = Classification
readonly_fields = ('confidence', 'high_confidence', )
raw_id_fields = ('worker_version', )
raw_id_fields = ('worker_version', 'moderator', 'ml_class')
class AllowedMetaDataAdmin(admin.ModelAdmin):
......
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