mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 10:49:15 +02:00
Fixed broken metadata update on track without license
This commit is contained in:
parent
e8c4deaa10
commit
b36b03383e
1 changed files with 4 additions and 1 deletions
|
@ -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():
|
||||||
data[field] = getattr(data[field], attr)
|
try:
|
||||||
|
data[field] = getattr(data[field], attr)
|
||||||
|
except KeyError:
|
||||||
|
continue
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def create(self, validated_data):
|
def create(self, validated_data):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue