Skip to content
Snippets Groups Projects
Commit 27b3ceb4 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Use default db to retrieve element types in CreateElements

parent e5f6ba1f
No related branches found
No related tags found
1 merge request!2208Use default db to retrieve element types in CreateElements
......@@ -935,6 +935,7 @@ class ElementBulkSerializer(serializers.Serializer):
type_ids = dict(
ElementType
.objects
.using('default')
.filter(
corpus_id=self.context['element'].corpus_id,
slug__in=type_slugs)
......
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