Skip to content
Snippets Groups Projects
Commit 319ae031 authored by LouisGendron's avatar LouisGendron
Browse files

Parse json string for DataFileAttachMutation

parent e59d1311
No related branches found
No related tags found
1 merge request!102Resolve "Fix DataFileAttachMutation"
......@@ -13,6 +13,7 @@ from graphene_django.forms.mutation import DjangoModelFormMutation
from portal.models import DataFile, DataSet, Lab, Profile, ProfileToken, ShareGroup
from portal.views import TokenLoginMixin
from portal.forms import DataSetForm
import json
# Protect graphql API page
......@@ -278,7 +279,7 @@ class DataFileAttachMutation(graphene.Mutation):
filename,
target_profile.id,
timezone.now(),
annotations
json.loads(annotations)
]
)
......
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