Skip to content
Snippets Groups Projects
Commit 15d1f41d authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[databases][api] Fix needed_dataformats field content

The needed dataformats were returned as referenced_dataformats
replacing the content of the field.
parent 8b9ee025
No related branches found
No related tags found
2 merge requests!2551.4.x,!251Database improvements
......@@ -274,7 +274,7 @@ class RetrieveDatabaseView(views.APIView):
if has_access:
needed_dataformats.append(dataformat)
serializer = ReferencedDataFormatSerializer(needed_dataformats)
result['referenced_dataformats'] = serializer.data
result['needed_dataformats'] = serializer.data
# Return the result
return Response(result)
......
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