Fixed broken metadata update on track without license
This commit is contained in:
parent
e8c4deaa10
commit
b36b03383e
|
@ -114,7 +114,10 @@ class UpdateMutationSerializer(serializers.ModelSerializer, MutationSerializer):
|
||||||
# to ensure we store ids instead of model instances in our json
|
# to ensure we store ids instead of model instances in our json
|
||||||
# payload
|
# payload
|
||||||
for field, attr in self.serialized_relations.items():
|
for field, attr in self.serialized_relations.items():
|
||||||
|
try:
|
||||||
data[field] = getattr(data[field], attr)
|
data[field] = getattr(data[field], attr)
|
||||||
|
except KeyError:
|
||||||
|
continue
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def create(self, validated_data):
|
def create(self, validated_data):
|
||||||
|
|
Loading…
Reference in New Issue