Skip to content
Snippets Groups Projects
Verified Commit b36b0338 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed broken metadata update on track without license

parent e8c4deaa
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,10 @@ class UpdateMutationSerializer(serializers.ModelSerializer, MutationSerializer):
# to ensure we store ids instead of model instances in our json
# payload
for field, attr in self.serialized_relations.items():
data[field] = getattr(data[field], attr)
try:
data[field] = getattr(data[field], attr)
except KeyError:
continue
return data
def create(self, validated_data):
......
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